-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Modify the mustache templates in open5gs-tools/openapi-generator-templates/c/ to add the following validation:
- Add validation to confirm that objects parsed from JSON that include arrays with
minItemsand/ormaxItemsset contain a valid number of items after parsing of the array is complete. - Add validation when converting a modelled object to JSON to confirm that arrays contain at least
minItemsnumber of items ifminItemsis given for the array and no more thanmaxItemsifmaxItemsis given for the array in the OpenAPI description. Conversion to JSON fails if an array does not contain a valid number of items. - Add validation to confirm that objects parsed from JSON that include maps with
minPropertiesand/ormaxPropertiesset contain a valid number of items after parsing of the map is complete. - Add validation when converting a modelled object to JSON to confirm that maps contain at least
minPropertiesnumber of entries ifminPropertiesis given and no more thanmaxPropertiesnumber of entries ifmaxPropertiesis given. Conversion to JSON fails if a map does not contain a valid number of entries.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request