forked from smallrye/smallrye-open-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve parsing of strings to objects (examples, defaults) (smallrye#…
…1904) Signed-off-by: Michael Edgar <[email protected]>
- Loading branch information
Showing
3 changed files
with
82 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...esources/io/smallrye/openapi/runtime/scanner/components.schemas.exceptional-examples.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"openapi" : "3.0.3", | ||
"components" : { | ||
"schemas" : { | ||
"Bean" : { | ||
"type" : "object", | ||
"properties" : { | ||
"property1" : { | ||
"example" : "{ Looks like object, but invalid }" | ||
}, | ||
"property2" : { | ||
"example" : "{ \"key\": \"object end missing\"" | ||
}, | ||
"property3" : { | ||
"example" : "[ Looks like array, but invalid ]" | ||
}, | ||
"property4" : { | ||
"example" : "[ \"array end missing\"" | ||
}, | ||
"property5" : { | ||
"example" : "trick" | ||
}, | ||
"property6" : { | ||
"example" : "fake" | ||
}, | ||
"property7" : { | ||
"example" : "1046\n1049\n1051" | ||
}, | ||
"property8" : { | ||
"example" : "" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |