Add JsonSchema array support for minItems, maxItems
See original GitHub issueSee reference: https://json-schema.org/understanding-json-schema/reference/array.html#length
It should be possible to define a schema like:
jsonSchema {
array(minItems = 2, maxItems = 100) { string() }
}
Issue Analytics
- State:
- Created a year ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
array — Understanding JSON Schema 2020-12 documentation
In JSON, each element in an array may be of a different type. ... The length of the array can be specified using...
Read more >Assigning maxItems property in an array in JSON Schema ...
This way you get an indirect way to modify values (just need to modify minArrayItems). Another option is to add a pre-processing step...
Read more >Variable arrays of elements in DFHJS2LS - IBM
An array with a varying number of elements is represented in the JSON schema by using the minItems and maxItems keywords in the...
Read more >Arrays - JSON Schema
We can restrict the contents of an array using a JSON Schema. ... arrRes := items | additems | minitems | maxitems |...
Read more >JSON Schema in RDF - W3C
This document introduces an RDF vocabulary for JSON schema definitions. ... 2.3.8 format; 2.3.9 maxItems; 2.3.10 maxLength; 2.3.11 maximum; 2.3.12 minItems ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
can assign me
Sorry, the last item was closed with https://github.com/kotest/kotest/pull/3026 . All done ✅