According to the documentation of Schema object, a keyword style is not supported inside.
However, in the example of PathItem object, style keyword is used inside Schema.
get:
description: Returns pets based on IDsummary: Find pets by IDoperationId: getPetsByIdresponses:
'200':
description: pet responsecontent:
'*/*':schema:
type: arrayitems:
$ref: '#/components/schemas/Pet'default:
description: error payloadcontent:
'text/html':
schema:
$ref: '#/components/schemas/ErrorModel'parameters:
- name: idin: pathdescription: ID of pet to userequired: trueschema:
type: arraystyle: simpleitems:
type: string
The style is not inside Schema in JSON format example so I think this is just a mistake.
Maybe like:
get:
description: Returns pets based on IDsummary: Find pets by IDoperationId: getPetsByIdresponses:
'200':
description: pet responsecontent:
'*/*':schema:
type: arrayitems:
$ref: '#/components/schemas/Pet'default:
description: error payloadcontent:
'text/html':
schema:
$ref: '#/components/schemas/ErrorModel'parameters:
- name: idin: pathdescription: ID of pet to userequired: trueschema:
type: arrayitems:
type: stringstyle: simple
This mistake is not fiexed v3.0.3-dev, too.
According to the documentation of Schema object, a keyword
styleis not supported inside.However, in the example of PathItem object,
stylekeyword is used inside Schema.The
styleis not inside Schema in JSON format example so I think this is just a mistake.Maybe like:
This mistake is not fiexed
v3.0.3-dev, too.