techauthor
7 months agoVisitor
Examples in model show as error in published docs
When I add a shared example to a model, I get this error in the published version:
{
"$ref": "#/components/examples/UserAddress",
"$error": "Could not resolve '#/components/examples/UserAddress'"
}
Nothing is marked as Internal only, and the shared examples show correctly in other published areas, e.g. in the "Response example" section of a GET request.
If I use a non-shared example, it works, but I want to single source as much as possible.
So, can shared examples not be linked to models, or am I doing something incorrect? TIA!