Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Entity

Error Messages for incorrect JSON or YAML (OAS2.0 or OAS3.0) Specifications

Description and Resolution

API and Proxy

Expand
titleStructural Error Message 1

Spec Contains Error

Structural error

Expecting property name enclosed in double quotes: line 33 column 29 (char 782)

Line 33

Column 29

Expand
titleInvalid or Incorrect Data Error Message 2

Spec Contains Errors

Structural error at $

'invalidField' does not match any of the regexes: '^x-'

Expand
titleInvalid or Incorrect Data Error Message 3

Spec Contains Errors

Structural error

Invalid API specification: 'str' object has no attribute 'get

  • If the API Specification has incorrect structure, then the error message displays a missing path where the syntax is broken along with the line and column number.

  • If the API Specification file has incorrect or invalid data then it specifies the incorrect data.

  • You can edit the specs in any editor such as Swagger and upload the edited specification file to create the API, API Version or Proxy.

...