mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
chore: Add x-code-samples to TS types (#533)
This commit is contained in:
parent
070dc5c0a8
commit
133f9f0d12
6
src/types/open-api.d.ts
vendored
6
src/types/open-api.d.ts
vendored
|
@ -57,6 +57,11 @@ export interface OpenAPIPath {
|
|||
parameters?: Array<Referenced<OpenAPIParameter>>;
|
||||
}
|
||||
|
||||
export interface OpenAPIXCodeSample {
|
||||
lang: string;
|
||||
source: string;
|
||||
}
|
||||
|
||||
export interface OpenAPIOperation {
|
||||
tags?: string[];
|
||||
summary?: string;
|
||||
|
@ -70,6 +75,7 @@ export interface OpenAPIOperation {
|
|||
deprecated?: boolean;
|
||||
security?: OpenAPISecurityRequirement[];
|
||||
servers?: OpenAPIServer[];
|
||||
'x-code-samples'?: OpenAPIXCodeSample[];
|
||||
}
|
||||
|
||||
export interface OpenAPIParameter {
|
||||
|
|
Loading…
Reference in New Issue
Block a user