-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(validation): prettier error in case of swagger file
Prettier error outup in case of swagger file/version. Before it returned Atoi parsing error because it was fed an empty string.
- Loading branch information
1 parent
f33c696
commit e1dca28
Showing
4 changed files
with
44 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Sample API", | ||
"description": "API description in Markdown.", | ||
"version": "1.0.0" | ||
}, | ||
"host": "api.example.com", | ||
"basePath": "/v1", | ||
"schemes": ["https"], | ||
"paths": { | ||
"/users": { | ||
"get": { | ||
"summary": "Returns a list of users.", | ||
"description": "Optional extended description in Markdown.", | ||
"produces": ["application/json"], | ||
"responses": { "200": { "description": "OK" } } | ||
} | ||
} | ||
} | ||
} |
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