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

Check for required type field. #51

Open
wting opened this issue Jun 21, 2016 · 0 comments
Open

Check for required type field. #51

wting opened this issue Jun 21, 2016 · 0 comments

Comments

@wting
Copy link

wting commented Jun 21, 2016

Here's an example response model that's missing a type field for time_created:

  TokenResponse:
    additionalProperties: false
    properties:
      is_foo:
        type: boolean
      time_created:
        description: The creation time of the access token in ISO8601 format.
        # type: string
    required:
    - is_foo
    type: object

While the time_created field isn't required, when you use that field the Bravado client fails due to lack of the type: string field. This spec currently passes the Swagger validator.

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

1 participant