Skip to content

Must comment out additionalProperties: false for it to work #54

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

Closed
alexec opened this issue Jan 13, 2017 · 2 comments
Closed

Must comment out additionalProperties: false for it to work #54

alexec opened this issue Jan 13, 2017 · 2 comments
Labels

Comments

@alexec
Copy link

alexec commented Jan 13, 2017

No following schema fails to compile

  failureResponse:
    type: object
    properties:
      reason:
        type: string
        maxLength: 255
        description: a simple description for the failure
    required:
    - reason
    # additionalProperties: false
rror] (compile:swaggerParseSpec) com.fasterxml.jackson.core.JsonParseException: Can not instantiate value of type [simple type, class de.zalando.swagger.strictModel$Schema] from Boolean value (false); no single-boolean/Boolean-arg constructor/factory method
[error]  at [Source: N/A; line: -1, column: -1] (through reference chain: de.zalando.swagger.Schema["additionalProperties"]) through reference chain: paths → /customer-subscriptions → post → responses → default → schema
@lasomethingsomething
Copy link

Hi @alexec, sorry for the delay in response. How would you like us to proceed?

@slavaschmidt
Copy link
Collaborator

@alexec, as for now we do not support OpenAPI 3.0
The definition of additionalProperties as false is invalid in Swagger 2.0
Please refer to OAI/OpenAPI-Specification#668 for further explanations

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

No branches or pull requests

3 participants