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

Untyped schemas aren't accepted #2507

Closed
gibson042 opened this issue Nov 7, 2017 · 0 comments
Closed

Untyped schemas aren't accepted #2507

gibson042 opened this issue Nov 7, 2017 · 0 comments

Comments

@gibson042
Copy link
Contributor

Root cause of swagger-api/swagger-codegen#6896

Description

Parsing seems to require a type property despite it being optional in the specification (where it defines values that can be of any type).

Swagger declaration file content or url
swagger: '2.0'
info:
  title: 'map of arbitrary values'
  version: '1'
produces: ["application/json"]
paths:
  /mapOfAnything:
    get:
      operationId: mapOfAnything
      responses:
        default:
          schema:
            description: 'map of arbitrary values'
            type: object
            additionalProperties:
              description: Any JSON type
Suggest a fix/enhancement

Introduce necessary code for handling untyped schemas.

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