Skip to content

Commit

Permalink
Enforce only major version in JSON model schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Feb 21, 2020
1 parent e02fff5 commit 74e2f65
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions doc/model.schema
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,22 @@
"properties": {
"version": {
"type": "array",
"const": [
1,
0,
0
"items": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"minimum": 0
},
{
"type": "number",
"minimum": 0
}
],
"additionalItems": false
"minItems": 3,
"maxItems": 3
},
"learner": {
"type": "object",
Expand Down

0 comments on commit 74e2f65

Please sign in to comment.