Skip to content

Commit

Permalink
Make json schema more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Dec 29, 2024
1 parent 63ec512 commit 213d9b4
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions tests/data_schema.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"data": {
"prefixItems": [
{
"prefixItems": [
{
"type": "string",
"minLength": 1
},
{
"type": "string",
"maxLength": 0
}
],
"type": "array",
"minItems": 2,
"maxItems": 2,
"uniqueItems": true
}
],
"items": {
"items": {
"type": "string"
},
"prefixItems": [
{
"type": "string",
"minLength": 1
},
{
"type": "string",
"minLength": 1
}
],
"type": "array",
"minItems": 2,
"maxItems": 2,
Expand Down

0 comments on commit 213d9b4

Please sign in to comment.