We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While this is legal in Swagger 2.0
swagger: 2.0 (...) paths: /search: get: (...) parameters: - name: term in: query description: search string required: false type: string
ng-swagger-gen will fail with Error: TypeError: Cannot read property 'type' of undefined because it expects the items to be defined (like so):
Error: TypeError: Cannot read property 'type' of undefined
items
swagger: 2.0 (...) paths: /search: get: (...) parameters: - name: term in: query description: search string required: false type: string items: type: string
This can be fixed by defaulting type itemType (ln 908) to string
itemType
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
While this is legal in Swagger 2.0
ng-swagger-gen will fail with
Error: TypeError: Cannot read property 'type' of undefined
because it expects theitems
to be defined (like so):This can be fixed by defaulting type
itemType
(ln 908) to stringThe text was updated successfully, but these errors were encountered: