Is it possible to reference query parameter to enum defined in definitions ? For example consider following example:
paths:
/users/test:
get:
summary: Test endpointparameters:
- name: osTypein: querydescription: Client's OS type.required: truetype: stringenum:
- ios
- android
then I define this
definitions:
OsTypes:
type: stringenum:
- ios
- android
Can I reference it from endpoint to avoid defining allowed values of the enum in every endpoint that uses it ?
I tried
schema:
$ref: '#/definitions/OsTypes'
Thanks!
Is it possible to reference query parameter to enum defined in
definitions? For example consider following example:then I define this
Can I reference it from endpoint to avoid defining allowed values of the enum in every endpoint that uses it ?
I tried
Thanks!