Skip to content

Commit

Permalink
add default to oneOf schema
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed May 21, 2021
1 parent f93ba97 commit d506da0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/resources/one.of.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ components:
# add CatObject as an option
# so that the non-mapping / implied mapping tests can pass
enum: [cat, kitty, CatObject]
color:
type: string
default: gray

Pet:
type: object
Expand Down

0 comments on commit d506da0

Please sign in to comment.