mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-12 07:50:34 +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>>;
|
parameters?: Array<Referenced<OpenAPIParameter>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface OpenAPIXCodeSample {
|
||||||
|
lang: string;
|
||||||
|
source: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface OpenAPIOperation {
|
export interface OpenAPIOperation {
|
||||||
tags?: string[];
|
tags?: string[];
|
||||||
summary?: string;
|
summary?: string;
|
||||||
|
@ -70,6 +75,7 @@ export interface OpenAPIOperation {
|
||||||
deprecated?: boolean;
|
deprecated?: boolean;
|
||||||
security?: OpenAPISecurityRequirement[];
|
security?: OpenAPISecurityRequirement[];
|
||||||
servers?: OpenAPIServer[];
|
servers?: OpenAPIServer[];
|
||||||
|
'x-code-samples'?: OpenAPIXCodeSample[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OpenAPIParameter {
|
export interface OpenAPIParameter {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user