Skip to content
New issue

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

Enumeration values are not validated against the enum type #61

Open
ranma42 opened this issue Mar 23, 2017 · 2 comments
Open

Enumeration values are not validated against the enum type #61

ranma42 opened this issue Mar 23, 2017 · 2 comments

Comments

@ranma42
Copy link

ranma42 commented Mar 23, 2017

In the following specification myenum is supposed to be an integer-valued enumeration, but its enum property is a list of mixed types. Unexpectedly, the validator does not report any error.

swagger: '2.0'
info:
  title: "bad api"
  version: "1.0.0"
host: localhost
schemes:
  - https
basePath: /path
paths:
  "/main":
    get:
      responses:
        200:
          description: "Main entry point"
definitions:
  myenum:
    type: integer
    enum:
      - not an integer
      - 2
@kailashyogeshwar85
Copy link

Has this been resolved in latest version ?

@JamesMessinger
Copy link
Member

Not yet, no. But a Pull Request is always welcome! Here is the file that would need to be edited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants