Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
niebert authored Dec 1, 2024
1 parent 4ed0dd7 commit 6c30c57
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/schema/car.schema
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ vDataJSON["car"] = {
2000,2001,2002,2003,2004,
2005,2006,2007,2008,2009,
2010,2011,2012,2013,2014,
2015,2016,2017
2015,2016,2017,2018,2019,
2020,2021,2022,2023,2024,
2025,2026,2027,2028,2029
],
"default": 2008
"default": 2020
},
"comment" : {
"type":"string",
Expand Down
60 changes: 60 additions & 0 deletions docs/schema/jsoninput_schema.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
vDataJSON.schema.jsoninput = {
"$schema": "http://json-schema.org/draft-04/schema#",
"additionalProperties": true,
"title": "Input JSON for Schema Generation",
"definitions": {
"comment": {
"title": "Comment:",
"type": "string",
"format": "textarea",
"default": ""
},
"yesno": {
"default": "yes",
"type": "string",
"enum": [
"yes",
"no"
]
}
},
"type": "object",
"id": "https://niebert.github.io/json-editor",
"options": {
"disable_collapse": true,
"disable_edit_json": true,
"disable_properties": true,
"collapsed": false,
"hidden": false
},
"defaultProperties": [
"schematitle",
"jsoninput"
],
"properties": {
"schematitle": {
"type": "string",
"id": "/properties/schematitle",
"title": "Title for Schema",
"default": "",
"format": "text",
"description": "Description for 'schematitle' Type: 'string' Path: '/properties/schematitle'",
"options": {
"hidden": false
},
"propertyOrder": 10
},
"jsoninput": {
"type": "string",
"id": "/properties/jsoninput",
"title": "JSON Input",
"default": "",
"format": "json",
"description": "Replace the input above with your JSON input. The JSON input will be used for the generation of the JSON Schema",
"options": {
"hidden": false
},
"propertyOrder": 20
}
}
}

0 comments on commit 6c30c57

Please sign in to comment.