@tsed/openspec 7.83.3 → 8.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types/openspec2/OpenSpec2.d.ts +1 -1
- package/lib/types/openspec3/OS3MediaType.d.ts +1 -1
- package/lib/types/openspec3/OS3RequestBody.d.ts +3 -3
- package/lib/types/openspec3/OS3Response.d.ts +1 -1
- package/lib/types/openspec3/OpenSpec3.d.ts +1 -1
- package/package.json +12 -10
- package/lib/cjs/common/OpenSpecExternalDocs.js +0 -3
- package/lib/cjs/common/OpenSpecExternalDocs.js.map +0 -1
- package/lib/cjs/common/OpenSpecHash.js +0 -3
- package/lib/cjs/common/OpenSpecHash.js.map +0 -1
- package/lib/cjs/common/OpenSpecInfo.js +0 -3
- package/lib/cjs/common/OpenSpecInfo.js.map +0 -1
- package/lib/cjs/common/OpenSpecJsonSchema.js +0 -3
- package/lib/cjs/common/OpenSpecJsonSchema.js.map +0 -1
- package/lib/cjs/common/OpenSpecPath.js +0 -3
- package/lib/cjs/common/OpenSpecPath.js.map +0 -1
- package/lib/cjs/common/OpenSpecRef.js +0 -3
- package/lib/cjs/common/OpenSpecRef.js.map +0 -1
- package/lib/cjs/common/OpenSpecSecurity.js +0 -3
- package/lib/cjs/common/OpenSpecSecurity.js.map +0 -1
- package/lib/cjs/common/OpenSpecTag.js +0 -3
- package/lib/cjs/common/OpenSpecTag.js.map +0 -1
- package/lib/cjs/common/OpenSpecTypes.js +0 -3
- package/lib/cjs/common/OpenSpecTypes.js.map +0 -1
- package/lib/cjs/common/OpenSpecVersions.js +0 -3
- package/lib/cjs/common/OpenSpecVersions.js.map +0 -1
- package/lib/cjs/common/OpenSpecXML.js +0 -3
- package/lib/cjs/common/OpenSpecXML.js.map +0 -1
- package/lib/cjs/index.js +0 -43
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/openspec2/OS2Header.js +0 -3
- package/lib/cjs/openspec2/OS2Header.js.map +0 -1
- package/lib/cjs/openspec2/OS2Operation.js +0 -3
- package/lib/cjs/openspec2/OS2Operation.js.map +0 -1
- package/lib/cjs/openspec2/OS2Parameter.js +0 -3
- package/lib/cjs/openspec2/OS2Parameter.js.map +0 -1
- package/lib/cjs/openspec2/OS2Paths.js +0 -3
- package/lib/cjs/openspec2/OS2Paths.js.map +0 -1
- package/lib/cjs/openspec2/OS2Response.js +0 -3
- package/lib/cjs/openspec2/OS2Response.js.map +0 -1
- package/lib/cjs/openspec2/OS2Schema.js +0 -3
- package/lib/cjs/openspec2/OS2Schema.js.map +0 -1
- package/lib/cjs/openspec2/OS2Security.js +0 -3
- package/lib/cjs/openspec2/OS2Security.js.map +0 -1
- package/lib/cjs/openspec2/OpenSpec2.js +0 -3
- package/lib/cjs/openspec2/OpenSpec2.js.map +0 -1
- package/lib/cjs/openspec3/OS3Callbacks.js +0 -3
- package/lib/cjs/openspec3/OS3Callbacks.js.map +0 -1
- package/lib/cjs/openspec3/OS3Components.js +0 -3
- package/lib/cjs/openspec3/OS3Components.js.map +0 -1
- package/lib/cjs/openspec3/OS3Encoding.js +0 -3
- package/lib/cjs/openspec3/OS3Encoding.js.map +0 -1
- package/lib/cjs/openspec3/OS3Example.js +0 -3
- package/lib/cjs/openspec3/OS3Example.js.map +0 -1
- package/lib/cjs/openspec3/OS3Flows.js +0 -3
- package/lib/cjs/openspec3/OS3Flows.js.map +0 -1
- package/lib/cjs/openspec3/OS3Header.js +0 -3
- package/lib/cjs/openspec3/OS3Header.js.map +0 -1
- package/lib/cjs/openspec3/OS3Link.js +0 -3
- package/lib/cjs/openspec3/OS3Link.js.map +0 -1
- package/lib/cjs/openspec3/OS3MediaType.js +0 -3
- package/lib/cjs/openspec3/OS3MediaType.js.map +0 -1
- package/lib/cjs/openspec3/OS3Operation.js +0 -3
- package/lib/cjs/openspec3/OS3Operation.js.map +0 -1
- package/lib/cjs/openspec3/OS3Parameter.js +0 -3
- package/lib/cjs/openspec3/OS3Parameter.js.map +0 -1
- package/lib/cjs/openspec3/OS3Paths.js +0 -3
- package/lib/cjs/openspec3/OS3Paths.js.map +0 -1
- package/lib/cjs/openspec3/OS3RequestBody.js +0 -3
- package/lib/cjs/openspec3/OS3RequestBody.js.map +0 -1
- package/lib/cjs/openspec3/OS3Response.js +0 -3
- package/lib/cjs/openspec3/OS3Response.js.map +0 -1
- package/lib/cjs/openspec3/OS3Schema.js +0 -3
- package/lib/cjs/openspec3/OS3Schema.js.map +0 -1
- package/lib/cjs/openspec3/OS3Security.js +0 -3
- package/lib/cjs/openspec3/OS3Security.js.map +0 -1
- package/lib/cjs/openspec3/OS3Server.js +0 -3
- package/lib/cjs/openspec3/OS3Server.js.map +0 -1
- package/lib/cjs/openspec3/OpenSpec3.js +0 -3
- package/lib/cjs/openspec3/OpenSpec3.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/esm/package.json +0 -3
- package/lib/types-esm/common/OpenSpecExternalDocs.d.ts +0 -10
- package/lib/types-esm/common/OpenSpecHash.d.ts +0 -1
- package/lib/types-esm/common/OpenSpecInfo.d.ts +0 -50
- package/lib/types-esm/common/OpenSpecJsonSchema.d.ts +0 -151
- package/lib/types-esm/common/OpenSpecPath.d.ts +0 -10
- package/lib/types-esm/common/OpenSpecRef.d.ts +0 -3
- package/lib/types-esm/common/OpenSpecSecurity.d.ts +0 -2
- package/lib/types-esm/common/OpenSpecTag.d.ts +0 -6
- package/lib/types-esm/common/OpenSpecTypes.d.ts +0 -1
- package/lib/types-esm/common/OpenSpecVersions.d.ts +0 -3
- package/lib/types-esm/common/OpenSpecXML.d.ts +0 -22
- package/lib/types-esm/index.d.ts +0 -39
- package/lib/types-esm/openspec2/OS2Header.d.ts +0 -7
- package/lib/types-esm/openspec2/OS2Operation.d.ts +0 -64
- package/lib/types-esm/openspec2/OS2Parameter.d.ts +0 -50
- package/lib/types-esm/openspec2/OS2Paths.d.ts +0 -7
- package/lib/types-esm/openspec2/OS2Response.d.ts +0 -21
- package/lib/types-esm/openspec2/OS2Schema.d.ts +0 -36
- package/lib/types-esm/openspec2/OS2Security.d.ts +0 -49
- package/lib/types-esm/openspec2/OpenSpec2.d.ts +0 -72
- package/lib/types-esm/openspec3/OS3Callbacks.d.ts +0 -4
- package/lib/types-esm/openspec3/OS3Components.d.ts +0 -48
- package/lib/types-esm/openspec3/OS3Encoding.d.ts +0 -24
- package/lib/types-esm/openspec3/OS3Example.d.ts +0 -19
- package/lib/types-esm/openspec3/OS3Flows.d.ts +0 -46
- package/lib/types-esm/openspec3/OS3Header.d.ts +0 -17
- package/lib/types-esm/openspec3/OS3Link.d.ts +0 -24
- package/lib/types-esm/openspec3/OS3MediaType.d.ts +0 -23
- package/lib/types-esm/openspec3/OS3Operation.d.ts +0 -69
- package/lib/types-esm/openspec3/OS3Parameter.d.ts +0 -81
- package/lib/types-esm/openspec3/OS3Paths.d.ts +0 -28
- package/lib/types-esm/openspec3/OS3RequestBody.d.ts +0 -20
- package/lib/types-esm/openspec3/OS3Response.d.ts +0 -24
- package/lib/types-esm/openspec3/OS3Schema.d.ts +0 -49
- package/lib/types-esm/openspec3/OS3Security.d.ts +0 -57
- package/lib/types-esm/openspec3/OS3Server.d.ts +0 -29
- package/lib/types-esm/openspec3/OpenSpec3.d.ts +0 -43
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { OpenSpecHash } from "./OpenSpecHash.js";
|
|
2
|
-
import { OpenSpecRef } from "./OpenSpecRef.js";
|
|
3
|
-
import { OpenSpecTypes } from "./OpenSpecTypes.js";
|
|
4
|
-
export interface OpenSpecBaseJsonSchema {
|
|
5
|
-
$ref?: string;
|
|
6
|
-
/**
|
|
7
|
-
* This attribute is a string that provides a short description of the instance property.
|
|
8
|
-
*
|
|
9
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2
|
|
10
|
-
*/
|
|
11
|
-
title?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Must be strictly greater than 0.
|
|
14
|
-
* A numeric instance is valid only if division by this keyword's value results in an integer.
|
|
15
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.1
|
|
16
|
-
*/
|
|
17
|
-
multipleOf?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Representing an inclusive upper limit for a numeric instance.
|
|
20
|
-
* This keyword validates only if the instance is less than or exactly equal to "maximum".
|
|
21
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.2
|
|
22
|
-
*/
|
|
23
|
-
maximum?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Representing an exclusive upper limit for a numeric instance.
|
|
26
|
-
* This keyword validates only if the instance is strictly less than (not equal to) to "exclusiveMaximum".
|
|
27
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.3
|
|
28
|
-
*/
|
|
29
|
-
exclusiveMaximum?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Representing an inclusive lower limit for a numeric instance.
|
|
32
|
-
* This keyword validates only if the instance is greater than or exactly equal to "minimum".
|
|
33
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.4
|
|
34
|
-
*/
|
|
35
|
-
minimum?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Representing an exclusive lower limit for a numeric instance.
|
|
38
|
-
* This keyword validates only if the instance is strictly greater than (not equal to) to "exclusiveMinimum".
|
|
39
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.5
|
|
40
|
-
*/
|
|
41
|
-
exclusiveMinimum?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Must be a non-negative integer.
|
|
44
|
-
* A string instance is valid against this keyword if its length is less than, or equal to, the value of this keyword.
|
|
45
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.6
|
|
46
|
-
*/
|
|
47
|
-
maxLength?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Must be a non-negative integer.
|
|
50
|
-
* A string instance is valid against this keyword if its length is greater than, or equal to, the value of this keyword.
|
|
51
|
-
* Omitting this keyword has the same behavior as a value of 0.
|
|
52
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.7
|
|
53
|
-
*/
|
|
54
|
-
minLength?: number;
|
|
55
|
-
/**
|
|
56
|
-
* Should be a valid regular expression, according to the ECMA 262 regular expression dialect.
|
|
57
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.8
|
|
58
|
-
*/
|
|
59
|
-
pattern?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Must be a non-negative integer.
|
|
62
|
-
* An array instance is valid against "maxItems" if its size is less than, or equal to, the value of this keyword.
|
|
63
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.11
|
|
64
|
-
*/
|
|
65
|
-
maxItems?: number;
|
|
66
|
-
/**
|
|
67
|
-
* Must be a non-negative integer.
|
|
68
|
-
* An array instance is valid against "maxItems" if its size is greater than, or equal to, the value of this keyword.
|
|
69
|
-
* Omitting this keyword has the same behavior as a value of 0.
|
|
70
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.12
|
|
71
|
-
*/
|
|
72
|
-
minItems?: number;
|
|
73
|
-
/**
|
|
74
|
-
* If this keyword has boolean value false, the instance validates successfully.
|
|
75
|
-
* If it has boolean value true, the instance validates successfully if all of its elements are unique.
|
|
76
|
-
* Omitting this keyword has the same behavior as a value of false.
|
|
77
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.13
|
|
78
|
-
*/
|
|
79
|
-
uniqueItems?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Must be a non-negative integer.
|
|
82
|
-
* An object instance is valid against "maxProperties" if its number of properties is less than, or equal to, the value of this keyword.
|
|
83
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.15
|
|
84
|
-
*/
|
|
85
|
-
maxProperties?: number;
|
|
86
|
-
/**
|
|
87
|
-
* Must be a non-negative integer.
|
|
88
|
-
* An object instance is valid against "maxProperties" if its number of properties is greater than,
|
|
89
|
-
* or equal to, the value of this keyword.
|
|
90
|
-
* Omitting this keyword has the same behavior as a value of 0.
|
|
91
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.16
|
|
92
|
-
*/
|
|
93
|
-
minProperties?: number;
|
|
94
|
-
/**
|
|
95
|
-
* This provides an enumeration of all possible values that are valid
|
|
96
|
-
* for the instance property. This MUST be an array, and each item in
|
|
97
|
-
* the array represents a possible value for the instance value. If
|
|
98
|
-
* this attribute is defined, the instance value MUST be one of the
|
|
99
|
-
* values in the array in order for the schema to be valid.
|
|
100
|
-
*
|
|
101
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.23
|
|
102
|
-
*/
|
|
103
|
-
enum?: any[];
|
|
104
|
-
/**
|
|
105
|
-
* This attribute is a string that provides a full description of the of purpose the instance property.
|
|
106
|
-
*
|
|
107
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.2
|
|
108
|
-
*/
|
|
109
|
-
description?: string;
|
|
110
|
-
/**
|
|
111
|
-
* This keyword can be used to supply a default JSON value associated with a particular schema.
|
|
112
|
-
* It is RECOMMENDED that a default value be valid against the associated schema.
|
|
113
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-7.3
|
|
114
|
-
*/
|
|
115
|
-
default?: any;
|
|
116
|
-
/**
|
|
117
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-8
|
|
118
|
-
*/
|
|
119
|
-
format?: string;
|
|
120
|
-
/**
|
|
121
|
-
* A single type, or a union of simple types
|
|
122
|
-
* @see https://tools.ietf.org/html/draft-wright-json-schema-validation-01#section-6.25
|
|
123
|
-
*/
|
|
124
|
-
type?: OpenSpecTypes;
|
|
125
|
-
}
|
|
126
|
-
export interface OpenSpecJsonSchema<Schema = any> extends OpenSpecBaseJsonSchema {
|
|
127
|
-
/**
|
|
128
|
-
* Required if type is "array". Describes the type of items in the array.
|
|
129
|
-
*/
|
|
130
|
-
items?: Schema | OpenSpecRef;
|
|
131
|
-
/**
|
|
132
|
-
* A free-form property to include an example of an instance for this schema.
|
|
133
|
-
*/
|
|
134
|
-
required?: string[];
|
|
135
|
-
/**
|
|
136
|
-
* Value can be boolean or object. Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.
|
|
137
|
-
*/
|
|
138
|
-
additionalProperties?: Schema | boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Property definitions MUST be a Schema Object and not a standard JSON Schema (inline or referenced).
|
|
141
|
-
*/
|
|
142
|
-
properties?: OpenSpecHash<Schema>;
|
|
143
|
-
/**
|
|
144
|
-
* Inline or referenced schema MUST be of a [Schema Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject) and not a standard JSON Schema.
|
|
145
|
-
*/
|
|
146
|
-
allOf?: (Schema | OpenSpecRef)[];
|
|
147
|
-
/**
|
|
148
|
-
* Additional external documentation for this schema.
|
|
149
|
-
*/
|
|
150
|
-
example?: any;
|
|
151
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type OpenSpecTypes = "string" | "number" | "integer" | "boolean" | "array" | "object" | "file";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface OpenSpecXML {
|
|
2
|
-
/**
|
|
3
|
-
* Replaces the name of the element/attribute used for the described schema property. When defined within items, it will affect the name of the individual XML elements within the list. When defined alongside type being array (outside the items), it will affect the wrapping element and only if wrapped is true. If wrapped is false, it will be ignored.
|
|
4
|
-
*/
|
|
5
|
-
name?: string;
|
|
6
|
-
/**
|
|
7
|
-
* The URI of the namespace definition. Value MUST be in the form of an absolute URI.
|
|
8
|
-
*/
|
|
9
|
-
namespace?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The prefix to be used for the [name](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#xmlName).
|
|
12
|
-
*/
|
|
13
|
-
prefix?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Declares whether the property definition translates to an attribute instead of an element. Default value is false.
|
|
16
|
-
*/
|
|
17
|
-
attribute?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being array (outside the items).
|
|
20
|
-
*/
|
|
21
|
-
wrapped?: boolean;
|
|
22
|
-
}
|
package/lib/types-esm/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file Automatically generated by @tsed/barrels.
|
|
3
|
-
*/
|
|
4
|
-
export * from "./common/OpenSpecExternalDocs.js";
|
|
5
|
-
export * from "./common/OpenSpecHash.js";
|
|
6
|
-
export * from "./common/OpenSpecInfo.js";
|
|
7
|
-
export * from "./common/OpenSpecJsonSchema.js";
|
|
8
|
-
export * from "./common/OpenSpecPath.js";
|
|
9
|
-
export * from "./common/OpenSpecRef.js";
|
|
10
|
-
export * from "./common/OpenSpecSecurity.js";
|
|
11
|
-
export * from "./common/OpenSpecTag.js";
|
|
12
|
-
export * from "./common/OpenSpecTypes.js";
|
|
13
|
-
export * from "./common/OpenSpecVersions.js";
|
|
14
|
-
export * from "./common/OpenSpecXML.js";
|
|
15
|
-
export * from "./openspec2/OpenSpec2.js";
|
|
16
|
-
export * from "./openspec2/OS2Header.js";
|
|
17
|
-
export * from "./openspec2/OS2Operation.js";
|
|
18
|
-
export * from "./openspec2/OS2Parameter.js";
|
|
19
|
-
export * from "./openspec2/OS2Paths.js";
|
|
20
|
-
export * from "./openspec2/OS2Response.js";
|
|
21
|
-
export * from "./openspec2/OS2Schema.js";
|
|
22
|
-
export * from "./openspec2/OS2Security.js";
|
|
23
|
-
export * from "./openspec3/OpenSpec3.js";
|
|
24
|
-
export * from "./openspec3/OS3Callbacks.js";
|
|
25
|
-
export * from "./openspec3/OS3Components.js";
|
|
26
|
-
export * from "./openspec3/OS3Encoding.js";
|
|
27
|
-
export * from "./openspec3/OS3Example.js";
|
|
28
|
-
export * from "./openspec3/OS3Flows.js";
|
|
29
|
-
export * from "./openspec3/OS3Header.js";
|
|
30
|
-
export * from "./openspec3/OS3Link.js";
|
|
31
|
-
export * from "./openspec3/OS3MediaType.js";
|
|
32
|
-
export * from "./openspec3/OS3Operation.js";
|
|
33
|
-
export * from "./openspec3/OS3Parameter.js";
|
|
34
|
-
export * from "./openspec3/OS3Paths.js";
|
|
35
|
-
export * from "./openspec3/OS3RequestBody.js";
|
|
36
|
-
export * from "./openspec3/OS3Response.js";
|
|
37
|
-
export * from "./openspec3/OS3Schema.js";
|
|
38
|
-
export * from "./openspec3/OS3Security.js";
|
|
39
|
-
export * from "./openspec3/OS3Server.js";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OS2BaseSchema } from "./OS2Schema.js";
|
|
2
|
-
export interface OS2Header extends OS2BaseSchema {
|
|
3
|
-
/**
|
|
4
|
-
* The type of the object. The value MUST be one of `string`, `number`, `integer`, `boolean`, or `array`.
|
|
5
|
-
*/
|
|
6
|
-
type: "string" | "number" | "integer" | "boolean" | "array";
|
|
7
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
3
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
4
|
-
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
5
|
-
import { OS2Parameter } from "./OS2Parameter.js";
|
|
6
|
-
import { OS2Response } from "./OS2Response.js";
|
|
7
|
-
export interface OS2Operation {
|
|
8
|
-
/**
|
|
9
|
-
* A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
|
|
10
|
-
*/
|
|
11
|
-
tags?: string[];
|
|
12
|
-
/**
|
|
13
|
-
* A short summary of what the operation does. For maximum readability in the swagger-ui, this field SHOULD be less than 120 characters.
|
|
14
|
-
*/
|
|
15
|
-
summary?: string;
|
|
16
|
-
/**
|
|
17
|
-
* A verbose explanation of the operation behavior. GFM syntax can be used for rich text representation.
|
|
18
|
-
*/
|
|
19
|
-
description?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Additional external documentation for this operation.
|
|
22
|
-
*/
|
|
23
|
-
externalDocs?: OpenSpecExternalDocs;
|
|
24
|
-
/**
|
|
25
|
-
* Unique string used to identify the operation. The id MUST be unique among all operations described in the API. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is recommended to follow common programming naming conventions.
|
|
26
|
-
*/
|
|
27
|
-
operationId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A list of MIME types the operation can consume. This overrides the consumes definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
|
|
30
|
-
*/
|
|
31
|
-
consumes?: string[];
|
|
32
|
-
/**
|
|
33
|
-
* A list of MIME types the operation can produce. This overrides the produces definition at the Swagger Object. An empty value MAY be used to clear the global definition. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
|
|
34
|
-
*/
|
|
35
|
-
produces?: string[];
|
|
36
|
-
/**
|
|
37
|
-
* A list of parameters that are applicable for this operation.
|
|
38
|
-
* If a parameter is already defined at the [Path Item](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemParameters),
|
|
39
|
-
* the new definition will override it, but can never remove it. The list MUST NOT include duplicated parameters.
|
|
40
|
-
* A unique parameter is defined by a combination of a [name](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterName) and (location)[https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterIn].
|
|
41
|
-
* The list can use the [Reference Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#referenceObject) to link to parameters that are defined at the [Swagger Object's parameters](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerParameters).
|
|
42
|
-
* There can be one "body" parameter at most.
|
|
43
|
-
*/
|
|
44
|
-
parameters?: (OS2Parameter | OpenSpecRef)[];
|
|
45
|
-
/**
|
|
46
|
-
* The list of possible responses as they are returned from executing this operation.
|
|
47
|
-
*/
|
|
48
|
-
responses: OpenSpecHash<OS2Response | OpenSpecRef>;
|
|
49
|
-
/**
|
|
50
|
-
* The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.
|
|
51
|
-
*/
|
|
52
|
-
schemes?: string[];
|
|
53
|
-
/**
|
|
54
|
-
* Declares this operation to be deprecated. Usage of the declared operation should be refrained. Default value is false.
|
|
55
|
-
*/
|
|
56
|
-
deprecated?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* A declaration of which security schemes are applied for this operation.
|
|
59
|
-
* The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements).
|
|
60
|
-
* This definition overrides any declared top-level [security](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swaggerSecurity).
|
|
61
|
-
* To remove a top-level security declaration, an empty array can be used.
|
|
62
|
-
*/
|
|
63
|
-
security?: OpenSpecSecurity;
|
|
64
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { OpenSpecTypes } from "../common/OpenSpecTypes.js";
|
|
2
|
-
import { OS2BaseSchema, OS2Schema } from "./OS2Schema.js";
|
|
3
|
-
export type OS2BaseParameter = {
|
|
4
|
-
name: string;
|
|
5
|
-
in: "body" | "query" | "path" | "header" | "formData";
|
|
6
|
-
required?: boolean;
|
|
7
|
-
description?: string;
|
|
8
|
-
};
|
|
9
|
-
export type OS2BodyParameter = OS2BaseParameter & {
|
|
10
|
-
in: "body";
|
|
11
|
-
schema?: OS2Schema;
|
|
12
|
-
};
|
|
13
|
-
export type OS2GenericFormat = {
|
|
14
|
-
type?: OpenSpecTypes;
|
|
15
|
-
format?: string;
|
|
16
|
-
};
|
|
17
|
-
export type OS2IntegerFormat = {
|
|
18
|
-
type: "integer";
|
|
19
|
-
format?: "int32" | "int64";
|
|
20
|
-
};
|
|
21
|
-
export type OS2NumberFormat = {
|
|
22
|
-
type: "number";
|
|
23
|
-
format?: "float" | "double";
|
|
24
|
-
};
|
|
25
|
-
export type OS2StringFormat = {
|
|
26
|
-
type: "string";
|
|
27
|
-
format?: "" | "byte" | "binary" | "date" | "date-time" | "password";
|
|
28
|
-
};
|
|
29
|
-
export type OS2SchemaFormatConstraints = OS2GenericFormat | OS2IntegerFormat | OS2NumberFormat | OS2StringFormat;
|
|
30
|
-
export type OS2BaseFormatContrainedParameter = OS2BaseParameter & OS2SchemaFormatConstraints;
|
|
31
|
-
export type ParameterCollectionFormat = "csv" | "ssv" | "tsv" | "pipes" | "multi";
|
|
32
|
-
export type OS2QueryParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
|
|
33
|
-
in: "query";
|
|
34
|
-
allowEmptyValue?: boolean;
|
|
35
|
-
collectionFormat?: ParameterCollectionFormat;
|
|
36
|
-
};
|
|
37
|
-
export type OS2PathParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
|
|
38
|
-
in: "path";
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
export type OS2HeaderParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
|
|
42
|
-
in: "header";
|
|
43
|
-
};
|
|
44
|
-
export type OS2FormDataParameter = OS2BaseFormatContrainedParameter & OS2BaseSchema & {
|
|
45
|
-
in: "formData";
|
|
46
|
-
type: OpenSpecTypes;
|
|
47
|
-
allowEmptyValue?: boolean;
|
|
48
|
-
collectionFormat?: ParameterCollectionFormat;
|
|
49
|
-
};
|
|
50
|
-
export type OS2Parameter = OS2BodyParameter | OS2FormDataParameter | OS2QueryParameter | OS2PathParameter | OS2HeaderParameter;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OpenSpecPath } from "../common/OpenSpecPath.js";
|
|
2
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
3
|
-
import { OS2Operation } from "./OS2Operation.js";
|
|
4
|
-
import { OS2Parameter } from "./OS2Parameter.js";
|
|
5
|
-
export interface OS2Paths extends OpenSpecPath<OS2Operation> {
|
|
6
|
-
parameters?: (OS2Parameter | OpenSpecRef)[];
|
|
7
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
import { OS2Header } from "./OS2Header.js";
|
|
3
|
-
import { OS2Schema } from "./OS2Schema.js";
|
|
4
|
-
export interface OS2Response {
|
|
5
|
-
/**
|
|
6
|
-
* A short description of the response. GFM syntax can be used for rich text representation.
|
|
7
|
-
*/
|
|
8
|
-
description: string;
|
|
9
|
-
/**
|
|
10
|
-
* A definition of the response structure. It can be a primitive, an array or an object. If this field does not exist, it means no content is returned as part of the response. As an extension to the Schema Object, its root type value may also be "file". This SHOULD be accompanied by a relevant produces mime-type.
|
|
11
|
-
*/
|
|
12
|
-
schema?: OS2Schema;
|
|
13
|
-
/**
|
|
14
|
-
* A list of headers that are sent with the response.
|
|
15
|
-
*/
|
|
16
|
-
headers?: OpenSpecHash<OS2Header>;
|
|
17
|
-
/**
|
|
18
|
-
* An example of the response message.
|
|
19
|
-
*/
|
|
20
|
-
examples?: OpenSpecHash<{}>;
|
|
21
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
2
|
-
import { OpenSpecBaseJsonSchema, OpenSpecJsonSchema } from "../common/OpenSpecJsonSchema.js";
|
|
3
|
-
import { OpenSpecRef } from "../common/OpenSpecRef.js";
|
|
4
|
-
import { OpenSpecXML } from "../common/OpenSpecXML.js";
|
|
5
|
-
export interface OS2XML {
|
|
6
|
-
name?: string;
|
|
7
|
-
namespace?: string;
|
|
8
|
-
prefix?: string;
|
|
9
|
-
attribute?: boolean;
|
|
10
|
-
wrapped?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface OS2BaseSchema extends OpenSpecBaseJsonSchema {
|
|
13
|
-
/**
|
|
14
|
-
* Required if type is "array". Describes the type of items in the array.
|
|
15
|
-
*/
|
|
16
|
-
items?: OS2Schema | OpenSpecRef;
|
|
17
|
-
}
|
|
18
|
-
export interface OS2Schema extends OpenSpecJsonSchema<OS2Schema> {
|
|
19
|
-
/**
|
|
20
|
-
* Adds support for polymorphism.
|
|
21
|
-
* The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.
|
|
22
|
-
*/
|
|
23
|
-
discriminator?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Relevant only for Schema "properties" definitions. Declares the property as "read only". This means that it MAY be sent as part of a response but MUST NOT be sent as part of the request. Properties marked as readOnly being true SHOULD NOT be in the required list of the defined schema. Default value is false.
|
|
26
|
-
*/
|
|
27
|
-
readOnly?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* This MAY be used only on properties schemas. It has no effect on root schemas. Adds Additional metadata to describe the XML representation format of this property.
|
|
30
|
-
*/
|
|
31
|
-
xml?: OpenSpecXML;
|
|
32
|
-
/**
|
|
33
|
-
* Additional external documentation for this schema.
|
|
34
|
-
*/
|
|
35
|
-
externalDocs?: OpenSpecExternalDocs;
|
|
36
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
export interface OS2SecurityBase {
|
|
3
|
-
/**
|
|
4
|
-
* The type of the security scheme
|
|
5
|
-
*/
|
|
6
|
-
type: "basic" | "apiKey" | "oauth2";
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
description?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface OS2SecurityBasic extends OS2SecurityBase {
|
|
13
|
-
type: "basic";
|
|
14
|
-
}
|
|
15
|
-
export interface OS2SecurityApiKey extends OS2SecurityBase {
|
|
16
|
-
type: "apiKey";
|
|
17
|
-
name: string;
|
|
18
|
-
in: "query" | "header";
|
|
19
|
-
}
|
|
20
|
-
export interface OS2SecurityOAuth extends OS2SecurityBase {
|
|
21
|
-
type: "oauth2";
|
|
22
|
-
flow: "accessCode" | "application" | "implicit" | "password";
|
|
23
|
-
/**
|
|
24
|
-
* The available scopes for the OAuth2 security scheme.
|
|
25
|
-
*/
|
|
26
|
-
scopes: OpenSpecHash<string>;
|
|
27
|
-
}
|
|
28
|
-
export interface OS2FlowImplicit extends OS2SecurityOAuth {
|
|
29
|
-
type: "oauth2";
|
|
30
|
-
flow: "implicit";
|
|
31
|
-
authorizationUrl: string;
|
|
32
|
-
}
|
|
33
|
-
export interface OS2FlowPassword extends OS2SecurityOAuth {
|
|
34
|
-
type: "oauth2";
|
|
35
|
-
flow: "password";
|
|
36
|
-
tokenUrl: string;
|
|
37
|
-
}
|
|
38
|
-
export interface OS2FlowApplication extends OS2SecurityOAuth {
|
|
39
|
-
type: "oauth2";
|
|
40
|
-
flow: "application";
|
|
41
|
-
tokenUrl: string;
|
|
42
|
-
}
|
|
43
|
-
export interface OS2FlowAccessCode extends OS2SecurityOAuth {
|
|
44
|
-
type: "oauth2";
|
|
45
|
-
flow: "accessCode";
|
|
46
|
-
tokenUrl: string;
|
|
47
|
-
authorizationUrl: string;
|
|
48
|
-
}
|
|
49
|
-
export type OS2Security = OS2SecurityBasic | OS2FlowAccessCode | OS2FlowApplication | OS2FlowImplicit | OS2FlowPassword | OS2SecurityApiKey;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { OS2Response } from "./OS2Response.js";
|
|
2
|
-
import { OpenSpecExternalDocs } from "../common/OpenSpecExternalDocs.js";
|
|
3
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
4
|
-
import { OpenSpecInfo } from "../common/OpenSpecInfo.js";
|
|
5
|
-
import { OpenSpecSecurity } from "../common/OpenSpecSecurity.js";
|
|
6
|
-
import { OpenSpecTag } from "../common/OpenSpecTag.js";
|
|
7
|
-
import { OS2BodyParameter, OS2QueryParameter } from "./OS2Parameter.js";
|
|
8
|
-
import { OS2Paths } from "./OS2Paths.js";
|
|
9
|
-
import { OS2Schema } from "./OS2Schema.js";
|
|
10
|
-
import { OS2Security } from "./OS2Security.js";
|
|
11
|
-
export interface OpenSpec2 {
|
|
12
|
-
/**
|
|
13
|
-
* Specifies the Swagger Specification version being used. It can be used by the Swagger UI and other clients to interpret the API listing. The value MUST be "2.0".
|
|
14
|
-
*/
|
|
15
|
-
swagger: string;
|
|
16
|
-
/**
|
|
17
|
-
* Provides metadata about the API. The metadata can be used by the clients if needed.
|
|
18
|
-
*/
|
|
19
|
-
info?: OpenSpecInfo;
|
|
20
|
-
/**
|
|
21
|
-
* The host (name or ip) serving the API. This MUST be the host only and does not include the scheme nor sub-paths. It MAY include a port. If the host is not included, the host serving the documentation is to be used (including the port). The host does not support [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).
|
|
22
|
-
*/
|
|
23
|
-
host?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path [path templating](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathTemplating).
|
|
26
|
-
*/
|
|
27
|
-
basePath?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The transfer protocol of the API. Values MUST be from the list: `http`, `https`, `ws`, `wss`. If the schemes is not included, the default scheme to be used is the one used to access the Swagger definition itself.
|
|
30
|
-
*/
|
|
31
|
-
schemes?: ("http" | "https" | "ws" | "wss")[];
|
|
32
|
-
/**
|
|
33
|
-
* A list of MIME types the APIs can consume. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
|
|
34
|
-
*/
|
|
35
|
-
consumes?: string[];
|
|
36
|
-
/**
|
|
37
|
-
* A list of MIME types the APIs can produce. This is global to all APIs but can be overridden on specific API calls. Value MUST be as described under [Mime Types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#mimeTypes).
|
|
38
|
-
*/
|
|
39
|
-
produces?: string[];
|
|
40
|
-
/**
|
|
41
|
-
* The available paths and operations for the API.
|
|
42
|
-
*/
|
|
43
|
-
paths?: OpenSpecHash<OS2Paths>;
|
|
44
|
-
/**
|
|
45
|
-
* An object to hold data types produced and consumed by operations.
|
|
46
|
-
*/
|
|
47
|
-
definitions?: OpenSpecHash<OS2Schema>;
|
|
48
|
-
/**
|
|
49
|
-
* An object to hold parameters that can be used across operations. This property does not define global parameters for all operations.
|
|
50
|
-
*/
|
|
51
|
-
parameters?: OpenSpecHash<OS2BodyParameter | OS2QueryParameter>;
|
|
52
|
-
/**
|
|
53
|
-
* An object to hold responses that can be used across operations. This property does not define global responses for all operations.
|
|
54
|
-
*/
|
|
55
|
-
responses?: OpenSpecHash<OS2Response>;
|
|
56
|
-
/**
|
|
57
|
-
* A declaration of which security schemes are applied for the API as a whole. The list of values describes alternative security schemes that can be used (that is, there is a logical OR between the security requirements). Individual operations can override this definition.
|
|
58
|
-
*/
|
|
59
|
-
security?: OpenSpecSecurity;
|
|
60
|
-
/**
|
|
61
|
-
* Security scheme definitions that can be used across the specification.
|
|
62
|
-
*/
|
|
63
|
-
securityDefinitions?: OpenSpecHash<OS2Security>;
|
|
64
|
-
/**
|
|
65
|
-
* A list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared may be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique.
|
|
66
|
-
*/
|
|
67
|
-
tags?: OpenSpecTag[];
|
|
68
|
-
/**
|
|
69
|
-
* Additional external documentation.
|
|
70
|
-
*/
|
|
71
|
-
externalDocs?: OpenSpecExternalDocs;
|
|
72
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
import { OS3Callbacks } from "./OS3Callbacks.js";
|
|
3
|
-
import { OS3Example } from "./OS3Example.js";
|
|
4
|
-
import { OS3Header } from "./OS3Header.js";
|
|
5
|
-
import { OS3Link } from "./OS3Link.js";
|
|
6
|
-
import { OS3Parameter } from "./OS3Parameter.js";
|
|
7
|
-
import { OS3RequestBody } from "./OS3RequestBody.js";
|
|
8
|
-
import { OS3Response } from "./OS3Response.js";
|
|
9
|
-
import { OS3Schema } from "./OS3Schema.js";
|
|
10
|
-
import { OS3Security } from "./OS3Security.js";
|
|
11
|
-
export interface OS3Components<Schema = OS3Schema> {
|
|
12
|
-
/**
|
|
13
|
-
* An object to hold reusable [Schema Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#schemaObject).
|
|
14
|
-
*/
|
|
15
|
-
schemas?: OpenSpecHash<Schema>;
|
|
16
|
-
/**
|
|
17
|
-
* An object to hold reusable [Response Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#responseObject).
|
|
18
|
-
*/
|
|
19
|
-
responses?: OpenSpecHash<OS3Response<Schema>>;
|
|
20
|
-
/**
|
|
21
|
-
* An object to hold reusable [Parameter Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterObject).
|
|
22
|
-
*/
|
|
23
|
-
parameters?: OpenSpecHash<OS3Parameter<Schema>>;
|
|
24
|
-
/**
|
|
25
|
-
* An object to hold reusable [Example Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#exampleObject).
|
|
26
|
-
*/
|
|
27
|
-
examples?: OpenSpecHash<OS3Example>;
|
|
28
|
-
/**
|
|
29
|
-
* An object to hold reusable [Request Body Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#requestBodyObject).
|
|
30
|
-
*/
|
|
31
|
-
requestBodies?: OpenSpecHash<OS3RequestBody<Schema>>;
|
|
32
|
-
/**
|
|
33
|
-
* An object to hold reusable [Header Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#headerObject).
|
|
34
|
-
*/
|
|
35
|
-
headers?: OpenSpecHash<OS3Header<Schema>>;
|
|
36
|
-
/**
|
|
37
|
-
* An object to hold reusable [Security Scheme Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#securitySchemeObject).
|
|
38
|
-
*/
|
|
39
|
-
securitySchemes?: OpenSpecHash<OS3Security>;
|
|
40
|
-
/**
|
|
41
|
-
* An object to hold reusable [Link Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#linkObject).
|
|
42
|
-
*/
|
|
43
|
-
links?: OpenSpecHash<OS3Link>;
|
|
44
|
-
/**
|
|
45
|
-
* An object to hold reusable [Callback Objects](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#callbackObject).
|
|
46
|
-
*/
|
|
47
|
-
callbacks?: OS3Callbacks;
|
|
48
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OpenSpecHash } from "../common/OpenSpecHash.js";
|
|
2
|
-
import { OS3Header } from "./OS3Header.js";
|
|
3
|
-
export interface OS3Encoding {
|
|
4
|
-
/**
|
|
5
|
-
* The `Content-Type` for encoding a specific property. Default value depends on the property type: for `string` with `format` being `binary` – `application/octet-stream`; for other primitive types – `text/plain`; for `object` - application/json; for `array` – the default is defined based on the inner type. The value can be a specific media type (e.g. `application/json`), a wildcard media type (e.g. `image/*`), or a comma-separated list of the two types.
|
|
6
|
-
*/
|
|
7
|
-
contentType?: string;
|
|
8
|
-
/**
|
|
9
|
-
* A map allowing additional information to be provided as headers, for example `Content-Disposition`. `Content-Type` is described separately and SHALL be ignored in this section. This property SHALL be ignored if the request body media type is not a multipart.
|
|
10
|
-
*/
|
|
11
|
-
headers?: OpenSpecHash<OS3Header>;
|
|
12
|
-
/**
|
|
13
|
-
* Describes how a specific property value will be serialized depending on its type. See [Parameter Object](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterObject) for details on the `[style](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterStyle)` property. The behavior follows the same values as `query` parameters, including default values. This property SHALL be ignored if the request body media type is not `application/x-www-form-urlencoded`.
|
|
14
|
-
*/
|
|
15
|
-
style?: string;
|
|
16
|
-
/**
|
|
17
|
-
* When this is true, property values of type `array` or `object` generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When `[style](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#parameterStyle)` is `form`, the default value is true. For all other styles, the default value is `false`. This property SHALL be ignored if the request body media type is not `application/x-www-form-urlencoded`.
|
|
18
|
-
*/
|
|
19
|
-
explode?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2) `:/?#[]@!$&'()*+,;=` to be included without percent-encoding. The default value is `false`. This property SHALL be ignored if the request body media type is not `application/x-www-form-urlencoded`.
|
|
22
|
-
*/
|
|
23
|
-
allowReserved?: boolean;
|
|
24
|
-
}
|