-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding unused filler fields in Harmony Core generation and request structures. #349
Comments
Hi Tom, If you want to exclude specific fields, always, you can do so by adding the text HARMONY_EXCLUDE to the field's long description. CodeGen also has a feature called field subsets, which allows you to define subsets of fields to be processed. Subsets can be defined in two ways, either in the repository, by adding text to the fields long description, like this:
And then referencing the subset in your codegen command:
Or entirely on the command line:
I have never done this when creating Harmony Core data objects, but in theory, it should work, so long as you use a structure alias to alter the name of the class that is created and don't exclude any fields that are used as key segments. |
You are pure gold @SteveIves! Thank you so much. That's what I was looking for. |
Actually, thinking about it some more, while If you're not using the SMC and related code generation then you could make it work for sure, but then you'd have to manually code a lot of additional stuff, including dispatcher classes on the traditional side, and controller, service and request/response classes on the .NET side. I can see this being a popular feature if we can make it work, but a solution is not currently obvious. |
No problem. I think specific field exclusion is all we need to do at the moment. But that is an interesting concept you mentioned, and yes that could be a nice feature. |
I apologize if this sounds like an odd or kind of simple question, but there are fields on the repository, that when Harmony Core is generated, are showing as part of the request and response Metadata that are passed around on the structures structures.
We were wondering if there is a way to exclude them from the request and response structures to help minimize the payload and wordiness of the requests and responses?
From what I have gathered from conversations around our development group, some folks are creating whole new repository structures which are derivations of the original structure which have limited subsets of fields from the original structures. That seems like that may be creating a bit of extra work that could be avoided. Any thoughts on this?
The text was updated successfully, but these errors were encountered: