Closed alexec closed 7 years ago
Seems like a bug
Cannot have the field name different to the type. E.g. countryCode
must have a definition named countryCode
, not countryCodes
.
Good:
"countryCode": "#/definitions/countryCode"
Bad:
"countryCode": "#/definitions/countries"
Hi @alexec, would you like to make a PR to address this bug?
Hi @alexec, would it be possible for you to provide a full failing specification? I've glossed over simple.pestore.api.yaml and found for example following snippet:
parameters:
- name: pet
in: body
description: Pet to add to the store
required: true
schema:
$ref: '#/definitions/newPet'
which confirms that name of the parameter does not need to be related to the name of the type.
Sorry - due to change in work, I'm afraid I won't have a chance to look at this. Feel free to close.
This does not work:
But removing the plural "s" does?