@stoplight/types
Advanced tools
Comparing version 13.16.0 to 13.17.0
@@ -46,2 +46,3 @@ import { JSONSchema7 } from 'json-schema'; | ||
securitySchemes: (IComponentNode & (HttpSecurityScheme | Reference))[]; | ||
callbacks: (IComponentNode & (IHttpCallbackOperation | IHttpKeyedReference))[]; | ||
}; | ||
@@ -58,3 +59,3 @@ } | ||
servers?: IServer[]; | ||
callbacks?: (Bundle extends true ? IHttpCallbackOperation[] | Reference : IHttpCallbackOperation<false>)[]; | ||
callbacks?: (Bundle extends true ? (IHttpCallbackOperation | IHttpKeyedReference)[] : IHttpCallbackOperation<false>)[]; | ||
security?: HttpSecurityScheme[][]; | ||
@@ -75,4 +76,7 @@ securityDeclarationType?: HttpOperationSecurityDeclarationTypes; | ||
export interface IHttpCallbackOperation<Bundle extends boolean = false> extends Omit<IHttpOperation<Bundle>, 'callbacks'> { | ||
callbackName: string; | ||
key: string; | ||
} | ||
export interface IHttpKeyedReference extends Reference { | ||
key: string; | ||
} | ||
export interface IHttpOperationRequest<Bundle extends boolean = false> { | ||
@@ -181,3 +185,3 @@ path?: (Bundle extends true ? IHttpPathParam<true> | Reference : IHttpPathParam<false>)[]; | ||
schema?: JSONSchema7; | ||
examples?: (Bundle extends true ? INodeExample | INodeExternalExample | (Pick<INodeExample, 'key'> & Reference) : INodeExample | INodeExternalExample)[]; | ||
examples?: (Bundle extends true ? INodeExample | INodeExternalExample | (IHttpKeyedReference) : INodeExample | INodeExternalExample)[]; | ||
encodings?: IHttpEncoding<Bundle>[]; | ||
@@ -184,0 +188,0 @@ } |
{ | ||
"name": "@stoplight/types", | ||
"version": "13.16.0", | ||
"version": "13.17.0", | ||
"description": "Common typings for the Stoplight ecosystem.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45296
927