Skip to content
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

JSon Scheme element definition Query #236

Open
PeteLong opened this issue Dec 9, 2019 · 0 comments
Open

JSon Scheme element definition Query #236

PeteLong opened this issue Dec 9, 2019 · 0 comments

Comments

@PeteLong
Copy link

PeteLong commented Dec 9, 2019

The following two elements ( system and doc_type ) are example elements defined in my JSon schema that was generated using Jsonix

How can these definitions be updated to specify min and max value effectively if this a mandatory element.

Also for numeric, how can i define the min and max values the element can have eg range of 4 to 10.

Are there examples of how to define constraints for elements.

Thank you for your help

Pete


"system":{
                    "title":"system",
                    "allOf":[
                        {
                            "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/string"
                        }
                    ],
                    "propertyType":"element",
                    "elementName":{
                        "localPart":"system",
                        "namespaceURI":""
                    }
                },

"docType":{
                    "title":"docType",
                    "allOf":[
                        {
                            "$ref":"http://www.jsonix.org/jsonschemas/w3c/2001/XMLSchema.jsonschema#/definitions/short"
                        }
                    ],
                    "propertyType":"element",
                    "elementName":{
                        "localPart":"doc_type",
                        "namespaceURI":""
                    }
                },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant