@stoplight/types
Advanced tools
Comparing version 13.8.0 to 13.9.0
@@ -56,3 +56,3 @@ import { JSONSchema7 } from 'json-schema'; | ||
servers?: IServer[]; | ||
callbacks?: IHttpCallbackOperation[]; | ||
callbacks?: (Bundle extends true ? IHttpCallbackOperation[] | Reference : IHttpCallbackOperation<false>)[]; | ||
security?: HttpSecurityScheme[][]; | ||
@@ -62,5 +62,5 @@ deprecated?: boolean; | ||
} | ||
export declare type IHttpCallbackOperation = Omit<IHttpOperation<false>, 'servers' | 'security' | 'callbacks'> & { | ||
export interface IHttpCallbackOperation<Bundle extends boolean = false> extends Omit<IHttpOperation<Bundle>, 'callbacks'> { | ||
callbackName: string; | ||
}; | ||
} | ||
export interface IHttpOperationRequest<Bundle extends boolean = false> { | ||
@@ -67,0 +67,0 @@ path?: (Bundle extends true ? IHttpPathParam<true> | Reference : IHttpPathParam<false>)[]; |
@@ -46,2 +46,3 @@ var HttpParamStyles; | ||
NodeType["HttpOperation"] = "http_operation"; | ||
NodeType["HttpCallback"] = "http_callback"; | ||
NodeType["Model"] = "model"; | ||
@@ -48,0 +49,0 @@ NodeType["Generic"] = "generic"; |
@@ -50,2 +50,3 @@ 'use strict'; | ||
NodeType["HttpOperation"] = "http_operation"; | ||
NodeType["HttpCallback"] = "http_callback"; | ||
NodeType["Model"] = "model"; | ||
@@ -52,0 +53,0 @@ NodeType["Generic"] = "generic"; |
@@ -9,2 +9,3 @@ /** | ||
HttpOperation = "http_operation", | ||
HttpCallback = "http_callback", | ||
Model = "model", | ||
@@ -11,0 +12,0 @@ Generic = "generic", |
{ | ||
"name": "@stoplight/types", | ||
"version": "13.8.0", | ||
"version": "13.9.0", | ||
"description": "Common typings for the Stoplight ecosystem.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
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
37659
703