-
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.
fix(api-generate): Various fixes to make openapi spec valid (#15)
- Paths in openapi don't use colon syntax for params - Required can't be an empty array - Required isn't a property in schema items, only parameters. It is already set as a seperate array of keys as per the spec - Noticed some instances of type: 'alternatives' etc in path and query params, reused the existing joi parsing function to correctly set these. Also sets example for path/query params - JSON output is now pretty, which should make it easier to read the spec and see what has changed in diffs
- Loading branch information
Showing
1 changed file
with
24 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