Skip to content

Commit

Permalink
Improve schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuanchiadm committed Feb 4, 2024
1 parent 76730c5 commit 93e6357
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ecnpc/container.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@
}
},
"if": {
"required": ["npc"]
"required": [
"reference"
]
},
"then": {
"$ref": "#/definitions/container"
},
"else": {
"type": "object",
"properties": {
"reference": {
Expand All @@ -80,4 +79,8 @@
"required": [
"reference"
]
},
"else": {
"$ref": "#/definitions/container"
}
}

0 comments on commit 93e6357

Please sign in to comment.