Skip to content

Bug: definitions/any requires type:object #9

Closed
@ytoune

Description

@ytoune

Steps To Reproduce

openapi: 3.0.0
info:
  version: 1.0.0
  title: DEMO
components:
  schemas:
    Author:
      type: object
      required:
        - id
        - name
      properties:
        id:
          type: number
          example: 12 # error
        name:
          type: string
          example: { value: hoge } # no error
paths: {}

https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v3.0/schema.yaml#L323

The current behavior

validation errors happen.

The expected behavior

no errors.

thank you.

Metadata

Metadata

Assignees

Labels

Type: BugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions