@stoplight/types
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -26,2 +26,3 @@ import { INode } from './node'; | ||
name: string; | ||
style?: HttpParamStyles; | ||
description?: string; | ||
@@ -38,8 +39,25 @@ required?: boolean; | ||
declare const enum HttpParamStyles { | ||
Simple = 'simple', | ||
Matrix = 'matrix', | ||
Label = 'label', | ||
Form = 'form', | ||
SpaceDelimited = 'spaceDelimited', | ||
PipeDelimited = 'pipeDelimited', | ||
DeepObject = 'deepObject', | ||
} | ||
export interface IHttpPathParam extends IHttpParam { | ||
style?: 'simple' | 'matrix' | 'label'; // defaults to simple | ||
// defaults to simple | ||
style?: HttpParamStyles.Label | HttpParamStyles.Matrix | HttpParamStyles.Simple; | ||
} | ||
export interface IHttpQueryParam extends IHttpParam { | ||
style?: 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject'; // defaults to form | ||
// defaults to form | ||
style?: | ||
| HttpParamStyles.Form | ||
| HttpParamStyles.SpaceDelimited | ||
| HttpParamStyles.PipeDelimited | ||
| HttpParamStyles.DeepObject; | ||
allowEmptyValue?: boolean; | ||
@@ -50,7 +68,9 @@ allowReserved?: boolean; | ||
export interface IHttpHeaderParam extends IHttpParam { | ||
style?: 'simple'; // defaults to simple | ||
// defaults to simple | ||
style?: HttpParamStyles.Simple; | ||
} | ||
export interface IHttpCookieParam extends IHttpParam { | ||
style?: 'form'; // defaults to form | ||
// defaults to form | ||
style?: HttpParamStyles.Form; | ||
} | ||
@@ -62,3 +82,9 @@ | ||
headers?: IHttpHeaderParam[]; | ||
style?: 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject'; // defaults to form | ||
// deafults to form | ||
style: | ||
| HttpParamStyles.Form | ||
| HttpParamStyles.SpaceDelimited | ||
| HttpParamStyles.PipeDelimited | ||
| HttpParamStyles.DeepObject; | ||
explode?: boolean; | ||
@@ -65,0 +91,0 @@ allowReserved?: boolean; |
{ | ||
"name": "@stoplight/types", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "Stoplight <support@stoplight.io>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18859
7
204