Skip to content

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

Closed
@alexec

Description

@alexec

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions