-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Description
I would like to use $ref
in the response example in order to break up my specification into more readily manageable chunks. Examples also benefit from being externalized because they can be easily revisioned, and included verbatim in reference implementations.
desired structure:
responses:
200:
description: Success
schema:
$ref: 'profile-models.yaml#/ProfileSearchResponse'
examples:
application/json:
$ref: 'ProfileExample.yaml#/ProfileSearchResponseExample'
Today, the children of examples are included directly, meaning the example itself using this example is:
{
"$ref": "ProfileExample.yaml#/ProfileSearchResponseExample"
}
Metadata
Metadata
Assignees
Labels
No labels