chore: Add x-code-samples to TS types (#533)

This commit is contained in:
Oleg Vaskevich 2018-06-20 09:09:16 -07:00 committed by Roman Hotsiy
parent 070dc5c0a8
commit 133f9f0d12

View File

@ -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 {