Format

As we stated previously, the OpenAPI Specification is a JSON object, which may be represented either in JSON or YAML format. What's important to remember is that all field names in the specification are case-sensitive.

Take a look at the following code:

{
"field" : [1, 2, 3, 4]
}

This would provide a different output compared to the following code:

{
"Field" : [1, 2, 3, 5]
}

This isn't because the array values are different, but because the second Field has a capitalized F.

Two types of fields are exposed by the schema:

  • Fixed fields: Have a declared name
  • Patterned fieldsDeclare a regex pattern for the field name
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.51.241