Skip to content

Commit

Permalink
fix: Add additionalProperties:false
Browse files Browse the repository at this point in the history
For schemas that do not have `properties`. It is necessary to make this explicit.
  • Loading branch information
nokome committed Jun 6, 2019
1 parent 2432204 commit fd6b309
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema/Collection.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ required:
# a requirement here. A creative work need not be required to have
# parts, but a collection should.
- parts
additionalProperties: false
1 change: 1 addition & 0 deletions schema/text/CodeBlock.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ $extends: Code.schema.yaml
role: secondary
status: stable
description: A code block.
additionalProperties: false
1 change: 1 addition & 0 deletions schema/text/ThematicBreak.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ description: |
A thematic break, such as a scene change in a story, a transition to another topic, or a new document.
required:
- type
additionalProperties: false

0 comments on commit fd6b309

Please sign in to comment.