swagger-parser icon indicating copy to clipboard operation
swagger-parser copied to clipboard

Parse report error message bug

Open chanjarster opened this issue 4 years ago • 1 comments

I try to parse the following spec yaml:

openapi: 3.0.2
info:
  version: v1
  title: abc
paths:
  /queryCommon:
    post:
      operationId: query
      responses:
        "405":
          description: Invalid input
components:
  schemas:
    Body:
      type: object
      properties:
        orgid:
          tilte: 'foo'   # this is a typo
          type: integer
          format: int32

Notice that components.schemas.Body.properties.orgid.tilte is a typo. Then got a an error message:

attribute components.schemas.Body.tilte is unexpected

Which is not accurate

chanjarster avatar Mar 12 '21 06:03 chanjarster

Did you mean title?

spacether avatar Sep 16 '22 20:09 spacether