@stoplight/types
Advanced tools
Comparing version 13.0.0-beta.4 to 13.0.0-beta.5
@@ -1,3 +0,5 @@ | ||
export interface INode { | ||
export interface IShareableNode { | ||
id: string; | ||
} | ||
export interface INode extends IShareableNode { | ||
/** An internal identifier. For example, the operationId property in OAS. */ | ||
@@ -23,3 +25,3 @@ iid?: string; | ||
} | ||
export interface INodeExample extends INodeExampleBase { | ||
export interface INodeExample extends INodeExampleBase, IShareableNode { | ||
value: unknown; | ||
@@ -26,0 +28,0 @@ } |
import { JSONSchema7 } from 'json-schema'; | ||
import { Dictionary } from './basic'; | ||
import { INode, INodeExample, INodeExternalExample } from './graph'; | ||
import { IShareableNode, INode, INodeExample, INodeExternalExample } from './graph'; | ||
import { IServer } from './servers'; | ||
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export interface IHttpService extends INode { | ||
export interface IHttpService extends INode, IShareableNode { | ||
name: string; | ||
@@ -36,3 +36,3 @@ version: string; | ||
*/ | ||
export interface IHttpOperation extends INode { | ||
export interface IHttpOperation extends INode, IShareableNode { | ||
method: string; | ||
@@ -59,3 +59,3 @@ path: string; | ||
} | ||
export interface IHttpOperationRequestBody { | ||
export interface IHttpOperationRequestBody extends IShareableNode { | ||
contents?: IMediaTypeContent[]; | ||
@@ -65,3 +65,3 @@ required?: boolean; | ||
} | ||
export interface IHttpOperationResponse { | ||
export interface IHttpOperationResponse extends IShareableNode { | ||
code: string; | ||
@@ -75,3 +75,3 @@ contents?: IMediaTypeContent[]; | ||
*/ | ||
export interface IHttpParam extends IHttpContent { | ||
export interface IHttpParam extends IHttpContent, IShareableNode { | ||
name: string; | ||
@@ -111,3 +111,3 @@ style: HttpParamStyles; | ||
*/ | ||
export interface IHttpContent { | ||
export interface IHttpContent extends IShareableNode { | ||
schema?: JSONSchema7; | ||
@@ -132,3 +132,3 @@ examples?: (INodeExample | INodeExternalExample)[]; | ||
export declare type HttpSecurityScheme = IApiKeySecurityScheme | IBearerSecurityScheme | IBasicSecurityScheme | IOauth2SecurityScheme | IOpenIdConnectSecurityScheme | IMutualTLSSecurityScheme; | ||
interface ISecurityScheme { | ||
interface ISecurityScheme extends IShareableNode { | ||
key: string; | ||
@@ -135,0 +135,0 @@ description?: string; |
import { Dictionary } from './basic'; | ||
import { IShareableNode } from './graph'; | ||
import { IHttpOperation } from './http-spec'; | ||
@@ -11,3 +12,3 @@ export declare type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'head' | 'options' | 'trace'; | ||
/** Inspired by the Axios typings, since that is what Stoplight generally uses under the hood. */ | ||
export interface IHttpRequest<T = any> { | ||
export interface IHttpRequest<T = any> extends IShareableNode { | ||
method: HttpMethod; | ||
@@ -22,3 +23,3 @@ /** Can be relative or absolute. If relative, `baseUrl` must also be set. */ | ||
} | ||
export interface IHttpResponse<T = any> { | ||
export interface IHttpResponse<T = any> extends IShareableNode { | ||
status: number; | ||
@@ -25,0 +26,0 @@ headers: HttpNameValue; |
import { Dictionary } from './basic'; | ||
import { INodeVariable } from './graph'; | ||
export interface IServer { | ||
import { INodeVariable, IShareableNode } from './graph'; | ||
export interface IServer extends IShareableNode { | ||
url: string; | ||
@@ -5,0 +5,0 @@ name?: string; |
{ | ||
"name": "@stoplight/types", | ||
"version": "13.0.0-beta.4", | ||
"version": "13.0.0-beta.5", | ||
"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
33485
622