Dan T
06/29/2022, 5:46 PMpaths:
/api/foo:
x-data_classification: PUBLIC
get:
summary: Does the foo
x-incident_priority: P3
/api/bar:
x-data_classification: INTERNAL
get:
summary: Does the bar
x-incident_priority: P1
It looks like the OpenApiExtension
interface gives access to the top-level node for me to insert the extension metadata, but this appears like I'd need to manage the route information in two places.
What seems like a more natural place to add the metadata is in the route definition. Is this feasible (e.g. in RouteMeta
as a Map), or am I missing some other better way to add the extension information?
i.e. Where's a good place to code information like x-data-classification
(at the path/ level) and x-incident-priority
(at the path/method level)?dave
07/01/2022, 7:24 AMDan T
07/01/2022, 5:38 PM•sectioninfo
•section, individual paths and operationspaths
• operation parameters
•responses
•tags
• security schemes