Forum Discussion
- HKosovaSmartBear Alumni (Retired)
Hi Raj, try wrappin the $ref into allOf:
TitleWithDefault allOf: - $ref: '#/components/schemas/Title' default: Unknown
- kashiraNew Contributor
G'day Helen,
Thanks for your reply. I tried. It did not work.
Please can you help.
Thanking you,
Raj
- HKosovaSmartBear Alumni (Retired)
"default" needs to be on the same level as "allOf", not inside it.
TitleWithDefault allOf: - $ref: '#/components/schemas/Title' default: Unknown
- kashiraNew Contributor
G'day,
I am not sure I followed as you suggested - it still did not work.
Regards,
- HKosovaSmartBear Alumni (Retired)
Can you please post your entire "components" section with all schemas?
Related Content
- 5 years ago
- 5 years ago
- 3 years ago
- 4 years ago
Recent Discussions
- 8 days ago
- 10 days ago