You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.2 KiB
81 lines
2.2 KiB
{ |
|
"$schema": "http://json-schema.org/draft-04/schema#", |
|
"$id": "https://example.com/product.schema.json", |
|
"title": "Form", |
|
"description": "A form", |
|
"type": "object", |
|
"required": ["form_type", "start_year", "end_year", "sections"], |
|
"properties": { |
|
"form_type": { |
|
"description": "", |
|
"type": "string" |
|
}, |
|
"start_year": { |
|
"description": "", |
|
"type": "integer" |
|
}, |
|
"end_year": { |
|
"description": "", |
|
"type": "integer" |
|
}, |
|
"sections": { |
|
"type": "object", |
|
"patternProperties": { |
|
"^[0-9]+$": { |
|
"description": "", |
|
"type": "string" |
|
}, |
|
"properties": { |
|
"label": { |
|
"description": "", |
|
"type": "string" |
|
}, |
|
"subsections": { |
|
"description": "", |
|
"type": "object", |
|
"patternProperties": { |
|
"^[0-9]+$": { |
|
"description": "", |
|
"type": "object", |
|
"required": ["label"], |
|
"properties": { |
|
"label": { |
|
"description": "", |
|
"type": "string" |
|
}, |
|
"pages": { |
|
"type": "object", |
|
"required": ["header"], |
|
"patternProperties": { |
|
"^[0-9]+$": { |
|
"properties": { |
|
"header": { |
|
"description": "", |
|
"type": "string" |
|
}, |
|
"description": { |
|
"description": "", |
|
"type": "string" |
|
}, |
|
"questions": { |
|
"type": "object", |
|
"properties": { |
|
|
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
}, |
|
"additionalProperties": false, |
|
"maxProperties": 1, |
|
"minProperties": 1 |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |
|
} |