-
Notifications
You must be signed in to change notification settings - Fork 183
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
Data elements for JSON consolidation #239
Comments
@anweiss has this been sufficiently addressed for you? If so, comment and transfer this back to me to close. if not, please indicate what still needs to be done. |
There are lots of good ideas here but they will require extension of metaschema functionality to provide validations for testing and ensuring the requisiste consistency in the data. Just for example, to produce this enviable JSON from profile XML:
the processor must be configured to know that any import/call/@control-id (XPath into the profile XML) should be represented as a string value in an array labeled includeControls. This is not impossible -- the |
Working on the first two items in my branch Leaving the last issue for later since the modeling questions are more complex. |
This issue is meant to track data elements that would allow for potential consolidation of JSON and JSON schema artifacts. The initial list is as follows:
hoisting array values into objects whose keys are the unique identifiers in the original array (possible for
props
,params
andparts
)Original XML snippet:
Current JSON equivalent:
Proposed JSON restructuring:
support for both single-value arrays and singular property/values
becomes:
arrays of single-property objects become arrays whose values are from the original array's object's values
Example of current JSON profile:
becomes:
the example above assumes the user disregards or simply has no need for the
with-control/subcontrols
semantics (they become optional) and explicitly calls the controls out insteadThe text was updated successfully, but these errors were encountered: