@extk/expressive 0.5.2 → 0.5.3

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/dist/index.d.mts CHANGED
@@ -232,6 +232,7 @@ declare class SwaggerBuilder {
232
232
  withDefaultSecurity(globalAuthMethods: AuthMethod[]): this;
233
233
  get(): SwaggerConfig;
234
234
  }
235
+ declare function formDataSchema(schema: Schema): Content;
235
236
  declare function jsonSchema(schema: Schema): Content;
236
237
  declare function jsonSchemaRef(name: string): Content;
237
238
  declare function param(inP: Param['in'], id: string, schema: Schema, required?: boolean, description?: string, name?: string): Param;
@@ -243,6 +244,7 @@ declare const SWG: {
243
244
  pathParam: typeof pathParam;
244
245
  queryParam: typeof queryParam;
245
246
  headerParam: typeof headerParam;
247
+ formDataSchema: typeof formDataSchema;
246
248
  jsonSchema: typeof jsonSchema;
247
249
  jsonSchemaRef: typeof jsonSchemaRef;
248
250
  security: (name: string) => AuthMethod;
package/dist/index.d.ts CHANGED
@@ -232,6 +232,7 @@ declare class SwaggerBuilder {
232
232
  withDefaultSecurity(globalAuthMethods: AuthMethod[]): this;
233
233
  get(): SwaggerConfig;
234
234
  }
235
+ declare function formDataSchema(schema: Schema): Content;
235
236
  declare function jsonSchema(schema: Schema): Content;
236
237
  declare function jsonSchemaRef(name: string): Content;
237
238
  declare function param(inP: Param['in'], id: string, schema: Schema, required?: boolean, description?: string, name?: string): Param;
@@ -243,6 +244,7 @@ declare const SWG: {
243
244
  pathParam: typeof pathParam;
244
245
  queryParam: typeof queryParam;
245
246
  headerParam: typeof headerParam;
247
+ formDataSchema: typeof formDataSchema;
246
248
  jsonSchema: typeof jsonSchema;
247
249
  jsonSchemaRef: typeof jsonSchemaRef;
248
250
  security: (name: string) => AuthMethod;
package/dist/index.js CHANGED
@@ -131,6 +131,15 @@ var security = (name) => {
131
131
  }
132
132
  return securityRegistry[name];
133
133
  };
134
+ function formDataSchema(schema) {
135
+ return {
136
+ content: {
137
+ "multipart/form-data": {
138
+ schema
139
+ }
140
+ }
141
+ };
142
+ }
134
143
  function jsonSchema(schema) {
135
144
  return {
136
145
  content: {
@@ -176,6 +185,7 @@ var SWG = {
176
185
  pathParam,
177
186
  queryParam,
178
187
  headerParam,
188
+ formDataSchema,
179
189
  jsonSchema,
180
190
  jsonSchemaRef,
181
191
  security,
package/dist/index.mjs CHANGED
@@ -70,6 +70,15 @@ var security = (name) => {
70
70
  }
71
71
  return securityRegistry[name];
72
72
  };
73
+ function formDataSchema(schema) {
74
+ return {
75
+ content: {
76
+ "multipart/form-data": {
77
+ schema
78
+ }
79
+ }
80
+ };
81
+ }
73
82
  function jsonSchema(schema) {
74
83
  return {
75
84
  content: {
@@ -115,6 +124,7 @@ var SWG = {
115
124
  pathParam,
116
125
  queryParam,
117
126
  headerParam,
127
+ formDataSchema,
118
128
  jsonSchema,
119
129
  jsonSchemaRef,
120
130
  security,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extk/expressive",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"