diff --git a/www/apps/api-reference/components/Tags/Operation/DescriptionSection/Events/index.tsx b/www/apps/api-reference/components/Tags/Operation/DescriptionSection/Events/index.tsx index edf9c9ece4..2d2169fe06 100644 --- a/www/apps/api-reference/components/Tags/Operation/DescriptionSection/Events/index.tsx +++ b/www/apps/api-reference/components/Tags/Operation/DescriptionSection/Events/index.tsx @@ -92,8 +92,8 @@ const TagsOperationDescriptionSectionEvent = ({ useCopy(snippet) return ( -
-
+
+
)} + {operation["x-version"] && ( + + + v{operation["x-version"]} + + + )}
diff --git a/www/packages/types/src/openapi.ts b/www/packages/types/src/openapi.ts index 6aeb41a3ec..8be2ffd496 100644 --- a/www/packages/types/src/openapi.ts +++ b/www/packages/types/src/openapi.ts @@ -23,6 +23,7 @@ export type Operation = OpenAPIV3.OperationObject<{ "x-workflow"?: string "x-sidebar-summary"?: string "x-events"?: OasEvents[] + "x-version"?: string }> export type RequestObject = OpenAPIV3.RequestBodyObject & {