highsource / highsource/jsonix

JSon Scheme element definition Query

Open
#236 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
369
Forks
85
PR merge metrics
No merged PRs in 30d

Description

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":""
}
},
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.