swagger-parser
swagger-parser copied to clipboard
Parse report error message bug
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
Did you mean title?