forked from biocad/openapi3
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make items objects instead of arrays for tuples
Workaround for biocad#31 If the tuples has homogeneous types, the generated schema is strict. On the other hand if there are heterogeneous types, the schema is not very strict because the order in which the types must come is not specified. Also, I had to use anyOf instead of oneOf because for example the int in (Int, Float) matches both Integer and Number. Finally, special care had to be taken to handle nullables.
- Loading branch information
Antoine Vandecrème
authored and
jean-baptiste.gourlet
committed
Jun 20, 2024
1 parent
00daa8c
commit 830bc1c
Showing
5 changed files
with
175 additions
and
76 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
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
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