@skmtc/core 0.0.800 → 0.0.803
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/esm/context/CoreContext.d.ts +2 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.d.ts +16 -3
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/ParseContext.d.ts +3 -3
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/RenderContext.d.ts +153 -1
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +179 -0
- package/esm/context/types.d.ts +30 -0
- package/esm/context/types.d.ts.map +1 -1
- package/esm/dsl/model/ModelBase.d.ts +1 -1
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts +62 -0
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +63 -1
- package/esm/dsl/model/toModelBase.d.ts +66 -0
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.js +46 -0
- package/esm/dsl/model/toModelEntry.d.ts +63 -0
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.js +63 -0
- package/esm/dsl/operation/OperationBase.d.ts +3 -3
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +84 -0
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.js +85 -1
- package/esm/dsl/operation/toOperationBase.d.ts +58 -0
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.js +46 -0
- package/esm/dsl/operation/toOperationEntry.d.ts +37 -0
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.js +28 -0
- package/esm/helpers/isEmpty.d.ts +1 -1
- package/esm/helpers/isEmpty.d.ts.map +1 -1
- package/esm/helpers/tracer.d.ts +1 -1
- package/esm/helpers/tracer.d.ts.map +1 -1
- package/esm/helpers/tracer.js +1 -1
- package/esm/mod.d.ts +52 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +52 -0
- package/esm/oas/array/Array.d.ts +26 -0
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +26 -0
- package/esm/oas/array/array-types.d.ts +32 -11
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +16 -0
- package/esm/oas/array/toArray.d.ts +111 -0
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/array/toArray.js +115 -3
- package/esm/oas/boolean/Boolean.d.ts +26 -0
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +26 -0
- package/esm/oas/boolean/boolean-types.d.ts +1 -7
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.d.ts +57 -0
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +57 -0
- package/esm/oas/components/components-types.d.ts +19 -0
- package/esm/oas/components/components-types.d.ts.map +1 -0
- package/esm/oas/components/components-types.js +21 -0
- package/esm/oas/contact/contact-types.d.ts +9 -0
- package/esm/oas/contact/contact-types.d.ts.map +1 -0
- package/esm/oas/contact/contact-types.js +7 -0
- package/esm/oas/discriminator/discriminator-types.d.ts +1 -5
- package/esm/oas/discriminator/discriminator-types.d.ts.map +1 -1
- package/esm/oas/document/document-types.d.ts +16 -0
- package/esm/oas/document/document-types.d.ts.map +1 -0
- package/esm/oas/document/document-types.js +18 -0
- package/esm/oas/example/example-types.d.ts +1 -6
- package/esm/oas/example/example-types.d.ts.map +1 -1
- package/esm/oas/header/header-types.d.ts +50 -0
- package/esm/oas/header/header-types.d.ts.map +1 -0
- package/esm/oas/header/header-types.js +30 -0
- package/esm/oas/info/info-types.d.ts +14 -0
- package/esm/oas/info/info-types.d.ts.map +1 -0
- package/esm/oas/info/info-types.js +13 -0
- package/esm/oas/integer/integer-types.d.ts +3 -17
- package/esm/oas/integer/integer-types.d.ts.map +1 -1
- package/esm/oas/license/license-types.d.ts +9 -0
- package/esm/oas/license/license-types.d.ts.map +1 -0
- package/esm/oas/license/license-types.js +7 -0
- package/esm/oas/mediaType/mediaType-types.d.ts +1 -11
- package/esm/oas/mediaType/mediaType-types.d.ts.map +1 -1
- package/esm/oas/number/number-types.d.ts +2 -16
- package/esm/oas/number/number-types.d.ts.map +1 -1
- package/esm/oas/number/toNumber.d.ts +62 -0
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +62 -0
- package/esm/oas/operation/operation-types.d.ts +22 -0
- package/esm/oas/operation/operation-types.d.ts.map +1 -0
- package/esm/oas/operation/operation-types.js +35 -0
- package/esm/oas/parameter/Parameter.d.ts +47 -0
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +47 -0
- package/esm/oas/parameter/parameter-types.d.ts +3 -58
- package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
- package/esm/oas/pathItem/pathItem-types.d.ts +12 -0
- package/esm/oas/pathItem/pathItem-types.d.ts.map +1 -0
- package/esm/oas/pathItem/pathItem-types.js +12 -0
- package/esm/oas/requestBody/requestBody-types.d.ts +10 -0
- package/esm/oas/requestBody/requestBody-types.d.ts.map +1 -0
- package/esm/oas/requestBody/requestBody-types.js +9 -0
- package/esm/oas/response/response-types.d.ts +12 -0
- package/esm/oas/response/response-types.d.ts.map +1 -0
- package/esm/oas/response/response-types.js +11 -0
- package/esm/oas/schema/toSchemasV3.js +2 -2
- package/esm/oas/server/toServerV3.d.ts.map +1 -1
- package/esm/oas/string/string-types.d.ts +2 -29
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/toString.d.ts +125 -1
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/string/toString.js +119 -0
- package/esm/oas/tag/tag-types.d.ts +8 -0
- package/esm/oas/tag/tag-types.d.ts.map +1 -0
- package/esm/oas/tag/tag-types.js +8 -0
- package/esm/oas/union/union-types.d.ts +1 -12
- package/esm/oas/union/union-types.d.ts.map +1 -1
- package/esm/oas/unknown/unknown-types.d.ts +1 -7
- package/esm/oas/unknown/unknown-types.d.ts.map +1 -1
- package/esm/types/CustomValue.d.ts +58 -0
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +58 -0
- package/esm/types/DenoJson.d.ts +24 -0
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +12 -0
- package/esm/types/Enrichments.d.ts +103 -0
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +52 -0
- package/esm/types/GeneratedValue.d.ts +17 -0
- package/esm/types/GeneratedValue.d.ts.map +1 -1
- package/esm/types/Logger.d.ts +9 -0
- package/esm/types/Logger.d.ts.map +1 -0
- package/esm/types/Logger.js +1 -0
- package/esm/types/Preview.d.ts +37 -0
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +37 -0
- package/esm/types/Settings.d.ts +35 -0
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +27 -0
- package/esm/typescript/FunctionParameter.d.ts +4 -4
- package/esm/typescript/FunctionParameter.d.ts.map +1 -1
- package/esm/typescript/List.d.ts +40 -2
- package/esm/typescript/List.d.ts.map +1 -1
- package/esm/typescript/List.js +32 -0
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +2 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/GenerateContext.d.ts +16 -3
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/ParseContext.d.ts +3 -3
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/RenderContext.d.ts +153 -1
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +179 -0
- package/script/context/types.d.ts +30 -0
- package/script/context/types.d.ts.map +1 -1
- package/script/dsl/model/ModelBase.d.ts +1 -1
- package/script/dsl/model/ModelBase.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.d.ts +62 -0
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +63 -1
- package/script/dsl/model/toModelBase.d.ts +66 -0
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.js +46 -0
- package/script/dsl/model/toModelEntry.d.ts +63 -0
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.js +63 -0
- package/script/dsl/operation/OperationBase.d.ts +3 -3
- package/script/dsl/operation/OperationBase.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.d.ts +84 -0
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.js +85 -1
- package/script/dsl/operation/toOperationBase.d.ts +58 -0
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.js +46 -0
- package/script/dsl/operation/toOperationEntry.d.ts +37 -0
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.js +28 -0
- package/script/helpers/isEmpty.d.ts +1 -1
- package/script/helpers/isEmpty.d.ts.map +1 -1
- package/script/helpers/tracer.d.ts +1 -1
- package/script/helpers/tracer.d.ts.map +1 -1
- package/script/helpers/tracer.js +1 -1
- package/script/mod.d.ts +52 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +52 -0
- package/script/oas/array/Array.d.ts +26 -0
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +26 -0
- package/script/oas/array/array-types.d.ts +32 -11
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +17 -1
- package/script/oas/array/toArray.d.ts +111 -0
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/array/toArray.js +114 -2
- package/script/oas/boolean/Boolean.d.ts +26 -0
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +26 -0
- package/script/oas/boolean/boolean-types.d.ts +1 -7
- package/script/oas/boolean/boolean-types.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.d.ts +57 -0
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +57 -0
- package/script/oas/components/components-types.d.ts +19 -0
- package/script/oas/components/components-types.d.ts.map +1 -0
- package/script/oas/components/components-types.js +57 -0
- package/script/oas/contact/contact-types.d.ts +9 -0
- package/script/oas/contact/contact-types.d.ts.map +1 -0
- package/script/oas/contact/contact-types.js +43 -0
- package/script/oas/discriminator/discriminator-types.d.ts +1 -5
- package/script/oas/discriminator/discriminator-types.d.ts.map +1 -1
- package/script/oas/document/document-types.d.ts +16 -0
- package/script/oas/document/document-types.d.ts.map +1 -0
- package/script/oas/document/document-types.js +54 -0
- package/script/oas/example/example-types.d.ts +1 -6
- package/script/oas/example/example-types.d.ts.map +1 -1
- package/script/oas/header/header-types.d.ts +50 -0
- package/script/oas/header/header-types.d.ts.map +1 -0
- package/script/oas/header/header-types.js +66 -0
- package/script/oas/info/info-types.d.ts +14 -0
- package/script/oas/info/info-types.d.ts.map +1 -0
- package/script/oas/info/info-types.js +49 -0
- package/script/oas/integer/integer-types.d.ts +3 -17
- package/script/oas/integer/integer-types.d.ts.map +1 -1
- package/script/oas/license/license-types.d.ts +9 -0
- package/script/oas/license/license-types.d.ts.map +1 -0
- package/script/oas/license/license-types.js +43 -0
- package/script/oas/mediaType/mediaType-types.d.ts +1 -11
- package/script/oas/mediaType/mediaType-types.d.ts.map +1 -1
- package/script/oas/number/number-types.d.ts +2 -16
- package/script/oas/number/number-types.d.ts.map +1 -1
- package/script/oas/number/toNumber.d.ts +62 -0
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +62 -0
- package/script/oas/operation/operation-types.d.ts +22 -0
- package/script/oas/operation/operation-types.d.ts.map +1 -0
- package/script/oas/operation/operation-types.js +71 -0
- package/script/oas/parameter/Parameter.d.ts +47 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +47 -0
- package/script/oas/parameter/parameter-types.d.ts +3 -58
- package/script/oas/parameter/parameter-types.d.ts.map +1 -1
- package/script/oas/pathItem/pathItem-types.d.ts +12 -0
- package/script/oas/pathItem/pathItem-types.d.ts.map +1 -0
- package/script/oas/pathItem/pathItem-types.js +48 -0
- package/script/oas/requestBody/requestBody-types.d.ts +10 -0
- package/script/oas/requestBody/requestBody-types.d.ts.map +1 -0
- package/script/oas/requestBody/requestBody-types.js +45 -0
- package/script/oas/response/response-types.d.ts +12 -0
- package/script/oas/response/response-types.d.ts.map +1 -0
- package/script/oas/response/response-types.js +47 -0
- package/script/oas/schema/toSchemasV3.js +2 -2
- package/script/oas/server/toServerV3.d.ts.map +1 -1
- package/script/oas/string/string-types.d.ts +2 -29
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/toString.d.ts +125 -1
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/string/toString.js +119 -0
- package/script/oas/tag/tag-types.d.ts +8 -0
- package/script/oas/tag/tag-types.d.ts.map +1 -0
- package/script/oas/tag/tag-types.js +44 -0
- package/script/oas/union/union-types.d.ts +1 -12
- package/script/oas/union/union-types.d.ts.map +1 -1
- package/script/oas/unknown/unknown-types.d.ts +1 -7
- package/script/oas/unknown/unknown-types.d.ts.map +1 -1
- package/script/types/CustomValue.d.ts +58 -0
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +58 -0
- package/script/types/DenoJson.d.ts +24 -0
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +12 -0
- package/script/types/Enrichments.d.ts +103 -0
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +52 -0
- package/script/types/GeneratedValue.d.ts +17 -0
- package/script/types/GeneratedValue.d.ts.map +1 -1
- package/script/types/Logger.d.ts +9 -0
- package/script/types/Logger.d.ts.map +1 -0
- package/script/types/Logger.js +2 -0
- package/script/types/Preview.d.ts +37 -0
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +37 -0
- package/script/types/Settings.d.ts +35 -0
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +27 -0
- package/script/typescript/FunctionParameter.d.ts +4 -4
- package/script/typescript/FunctionParameter.d.ts.map +1 -1
- package/script/typescript/List.d.ts +40 -2
- package/script/typescript/List.d.ts.map +1 -1
- package/script/typescript/List.js +32 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-types.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/operation-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,iCAAiC,CAAA;AACzF,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,+BAA+B,CAAA;AACrF,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EAIxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,qCAAqC,CAAA;AACjG,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,+BAA+B,CAAA;AACrF,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,eAAe,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;IAClF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IAGpB,UAAU,CAAC,EAAE,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAA;IACvD,WAAW,CAAC,EAAE,kBAAkB,GAAG,qBAAqB,CAAA;IACxD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,kBAAkB,CAAC,CAAA;IAE/D,UAAU,CAAC,EAAE,OAAO,CAAA;CAGrB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,aAAa,CAAC,gBAAgB,CA2B7D,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.oasOperationData = void 0;
|
|
37
|
+
const markdown_types_js_1 = require("../markdown/markdown-types.js");
|
|
38
|
+
const parameter_types_js_1 = require("../parameter/parameter-types.js");
|
|
39
|
+
const pathItem_types_js_1 = require("../pathItem/pathItem-types.js");
|
|
40
|
+
const ref_types_js_1 = require("../ref/ref-types.js");
|
|
41
|
+
const requestBody_types_js_1 = require("../requestBody/requestBody-types.js");
|
|
42
|
+
const response_types_js_1 = require("../response/response-types.js");
|
|
43
|
+
const v = __importStar(require("valibot"));
|
|
44
|
+
exports.oasOperationData = v.object({
|
|
45
|
+
oasType: v.literal('operation'),
|
|
46
|
+
pathItem: pathItem_types_js_1.oasPathItemData,
|
|
47
|
+
path: v.string(),
|
|
48
|
+
method: v.enum({
|
|
49
|
+
get: 'get',
|
|
50
|
+
put: 'put',
|
|
51
|
+
post: 'post',
|
|
52
|
+
delete: 'delete',
|
|
53
|
+
options: 'options',
|
|
54
|
+
head: 'head',
|
|
55
|
+
patch: 'patch',
|
|
56
|
+
trace: 'trace'
|
|
57
|
+
}),
|
|
58
|
+
operationId: v.optional(v.string()),
|
|
59
|
+
tags: v.optional(v.array(v.string())),
|
|
60
|
+
summary: v.optional(v.string()),
|
|
61
|
+
description: v.optional(markdown_types_js_1.markdown),
|
|
62
|
+
// externalDocs: externalDocs.optional(),
|
|
63
|
+
// operationId: z.string().optional(),
|
|
64
|
+
parameters: v.optional(v.array(v.union([parameter_types_js_1.oasParameterData, ref_types_js_1.oasParameterRefData]))),
|
|
65
|
+
requestBody: v.optional(v.union([requestBody_types_js_1.oasRequestBodyData, ref_types_js_1.oasRequestBodyRefData])),
|
|
66
|
+
responses: v.record(v.string(), v.union([response_types_js_1.oasResponseData, ref_types_js_1.oasResponseRefData])),
|
|
67
|
+
// callbacks: z.never(),
|
|
68
|
+
deprecated: v.optional(v.boolean())
|
|
69
|
+
// security: z.never(),
|
|
70
|
+
// servers: z.array(server).optional()
|
|
71
|
+
});
|
|
@@ -188,22 +188,69 @@ export declare class OasParameter {
|
|
|
188
188
|
name: string;
|
|
189
189
|
/** Where the parameter is located (path, query, header, cookie) */
|
|
190
190
|
location: OasParameterLocation;
|
|
191
|
+
/** A brief description of the parameter's purpose and usage */
|
|
191
192
|
description?: string | undefined;
|
|
193
|
+
/** Determines whether this parameter is mandatory for the operation */
|
|
192
194
|
required?: boolean | undefined;
|
|
195
|
+
/** Indicates that the parameter is deprecated and should be avoided */
|
|
193
196
|
deprecated?: boolean | undefined;
|
|
197
|
+
/** Whether to allow empty values for this parameter */
|
|
194
198
|
allowEmptyValue?: boolean | undefined;
|
|
199
|
+
/** Whether reserved characters are allowed in parameter values */
|
|
195
200
|
allowReserved?: boolean | undefined;
|
|
201
|
+
/** The schema defining the parameter's data type and validation rules */
|
|
196
202
|
schema?: OasSchema | OasRef<'schema'> | undefined;
|
|
203
|
+
/** Example values demonstrating parameter usage */
|
|
197
204
|
examples?: Record<string, OasExample | OasRef<'example'>> | undefined;
|
|
205
|
+
/** Media type definitions for complex parameter content */
|
|
198
206
|
content?: Record<string, OasMediaType> | undefined;
|
|
207
|
+
/** The serialization style for the parameter (form, simple, etc.) */
|
|
199
208
|
style: OasParameterStyle;
|
|
209
|
+
/** Whether to explode parameter values into separate key-value pairs */
|
|
200
210
|
explode: boolean;
|
|
211
|
+
/** Custom extension fields (x-* properties) defined for this parameter */
|
|
201
212
|
extensionFields: Record<string, unknown> | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Creates a new OasParameter instance.
|
|
215
|
+
*
|
|
216
|
+
* @param fields - Parameter configuration fields including name, location, schema, and serialization options
|
|
217
|
+
*/
|
|
202
218
|
constructor(fields: ParameterFields);
|
|
219
|
+
/**
|
|
220
|
+
* Determines if this parameter is a reference object.
|
|
221
|
+
*
|
|
222
|
+
* @returns Always false since this is a concrete parameter instance, not a reference
|
|
223
|
+
*/
|
|
203
224
|
isRef(): this is OasRef<'parameter'>;
|
|
225
|
+
/**
|
|
226
|
+
* Resolves this parameter object.
|
|
227
|
+
*
|
|
228
|
+
* @returns The parameter instance itself since it's already a concrete object
|
|
229
|
+
*/
|
|
204
230
|
resolve(): OasParameter;
|
|
231
|
+
/**
|
|
232
|
+
* Resolves this parameter object one level.
|
|
233
|
+
*
|
|
234
|
+
* @returns The parameter instance itself since it's already a concrete object
|
|
235
|
+
*/
|
|
205
236
|
resolveOnce(): OasParameter;
|
|
237
|
+
/**
|
|
238
|
+
* Extracts the schema for this parameter.
|
|
239
|
+
*
|
|
240
|
+
* Returns the direct schema if available, or extracts schema from content
|
|
241
|
+
* for the specified media type.
|
|
242
|
+
*
|
|
243
|
+
* @param mediaType - Media type to extract schema from when using content definitions
|
|
244
|
+
* @returns The parameter's schema object
|
|
245
|
+
* @throws Error if no schema is found for the specified media type
|
|
246
|
+
*/
|
|
206
247
|
toSchema(mediaType?: string): OasSchema | OasRef<'schema'>;
|
|
248
|
+
/**
|
|
249
|
+
* Converts this OAS parameter to an OpenAPI v3 JSON schema representation.
|
|
250
|
+
*
|
|
251
|
+
* @param options - Conversion options including reference handling and formatting preferences
|
|
252
|
+
* @returns OpenAPI v3 parameter object with all properties and validation constraints
|
|
253
|
+
*/
|
|
207
254
|
toJsonSchema(options: ToJsonSchemaOptions): OpenAPIV3.ParameterObject;
|
|
208
255
|
}
|
|
209
256
|
//# sourceMappingURL=Parameter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parameter.d.ts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AA;IACxB,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAA;IAChB,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACpD;;;;OAIG;gBACS,MAAM,EAAE,eAAe;IAkBnC;;;;OAIG;IACH,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,WAAW,CAAC;IAIpC;;;;OAIG;IACH,OAAO,IAAI,YAAY;IAIvB;;;;OAIG;IACH,WAAW,IAAI,YAAY;IAI3B;;;;;;;;;OASG;IACH,QAAQ,CAAC,SAAS,GAAE,MAA2B,GAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IAc9E;;;;;OAKG;IACH,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAAC,eAAe;CAuBtE"}
|
|
@@ -147,6 +147,11 @@ require("../../_dnt.polyfills.js");
|
|
|
147
147
|
* ```
|
|
148
148
|
*/
|
|
149
149
|
class OasParameter {
|
|
150
|
+
/**
|
|
151
|
+
* Creates a new OasParameter instance.
|
|
152
|
+
*
|
|
153
|
+
* @param fields - Parameter configuration fields including name, location, schema, and serialization options
|
|
154
|
+
*/
|
|
150
155
|
constructor(fields) {
|
|
151
156
|
/** Type identifier for OAS parameter objects */
|
|
152
157
|
Object.defineProperty(this, "oasType", {
|
|
@@ -169,66 +174,77 @@ class OasParameter {
|
|
|
169
174
|
writable: true,
|
|
170
175
|
value: void 0
|
|
171
176
|
});
|
|
177
|
+
/** A brief description of the parameter's purpose and usage */
|
|
172
178
|
Object.defineProperty(this, "description", {
|
|
173
179
|
enumerable: true,
|
|
174
180
|
configurable: true,
|
|
175
181
|
writable: true,
|
|
176
182
|
value: void 0
|
|
177
183
|
});
|
|
184
|
+
/** Determines whether this parameter is mandatory for the operation */
|
|
178
185
|
Object.defineProperty(this, "required", {
|
|
179
186
|
enumerable: true,
|
|
180
187
|
configurable: true,
|
|
181
188
|
writable: true,
|
|
182
189
|
value: void 0
|
|
183
190
|
});
|
|
191
|
+
/** Indicates that the parameter is deprecated and should be avoided */
|
|
184
192
|
Object.defineProperty(this, "deprecated", {
|
|
185
193
|
enumerable: true,
|
|
186
194
|
configurable: true,
|
|
187
195
|
writable: true,
|
|
188
196
|
value: void 0
|
|
189
197
|
});
|
|
198
|
+
/** Whether to allow empty values for this parameter */
|
|
190
199
|
Object.defineProperty(this, "allowEmptyValue", {
|
|
191
200
|
enumerable: true,
|
|
192
201
|
configurable: true,
|
|
193
202
|
writable: true,
|
|
194
203
|
value: void 0
|
|
195
204
|
});
|
|
205
|
+
/** Whether reserved characters are allowed in parameter values */
|
|
196
206
|
Object.defineProperty(this, "allowReserved", {
|
|
197
207
|
enumerable: true,
|
|
198
208
|
configurable: true,
|
|
199
209
|
writable: true,
|
|
200
210
|
value: void 0
|
|
201
211
|
});
|
|
212
|
+
/** The schema defining the parameter's data type and validation rules */
|
|
202
213
|
Object.defineProperty(this, "schema", {
|
|
203
214
|
enumerable: true,
|
|
204
215
|
configurable: true,
|
|
205
216
|
writable: true,
|
|
206
217
|
value: void 0
|
|
207
218
|
});
|
|
219
|
+
/** Example values demonstrating parameter usage */
|
|
208
220
|
Object.defineProperty(this, "examples", {
|
|
209
221
|
enumerable: true,
|
|
210
222
|
configurable: true,
|
|
211
223
|
writable: true,
|
|
212
224
|
value: void 0
|
|
213
225
|
});
|
|
226
|
+
/** Media type definitions for complex parameter content */
|
|
214
227
|
Object.defineProperty(this, "content", {
|
|
215
228
|
enumerable: true,
|
|
216
229
|
configurable: true,
|
|
217
230
|
writable: true,
|
|
218
231
|
value: void 0
|
|
219
232
|
});
|
|
233
|
+
/** The serialization style for the parameter (form, simple, etc.) */
|
|
220
234
|
Object.defineProperty(this, "style", {
|
|
221
235
|
enumerable: true,
|
|
222
236
|
configurable: true,
|
|
223
237
|
writable: true,
|
|
224
238
|
value: void 0
|
|
225
239
|
});
|
|
240
|
+
/** Whether to explode parameter values into separate key-value pairs */
|
|
226
241
|
Object.defineProperty(this, "explode", {
|
|
227
242
|
enumerable: true,
|
|
228
243
|
configurable: true,
|
|
229
244
|
writable: true,
|
|
230
245
|
value: void 0
|
|
231
246
|
});
|
|
247
|
+
/** Custom extension fields (x-* properties) defined for this parameter */
|
|
232
248
|
Object.defineProperty(this, "extensionFields", {
|
|
233
249
|
enumerable: true,
|
|
234
250
|
configurable: true,
|
|
@@ -251,15 +267,40 @@ class OasParameter {
|
|
|
251
267
|
this.explode = fields.explode;
|
|
252
268
|
this.extensionFields = fields.extensionFields;
|
|
253
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Determines if this parameter is a reference object.
|
|
272
|
+
*
|
|
273
|
+
* @returns Always false since this is a concrete parameter instance, not a reference
|
|
274
|
+
*/
|
|
254
275
|
isRef() {
|
|
255
276
|
return false;
|
|
256
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Resolves this parameter object.
|
|
280
|
+
*
|
|
281
|
+
* @returns The parameter instance itself since it's already a concrete object
|
|
282
|
+
*/
|
|
257
283
|
resolve() {
|
|
258
284
|
return this;
|
|
259
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* Resolves this parameter object one level.
|
|
288
|
+
*
|
|
289
|
+
* @returns The parameter instance itself since it's already a concrete object
|
|
290
|
+
*/
|
|
260
291
|
resolveOnce() {
|
|
261
292
|
return this;
|
|
262
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Extracts the schema for this parameter.
|
|
296
|
+
*
|
|
297
|
+
* Returns the direct schema if available, or extracts schema from content
|
|
298
|
+
* for the specified media type.
|
|
299
|
+
*
|
|
300
|
+
* @param mediaType - Media type to extract schema from when using content definitions
|
|
301
|
+
* @returns The parameter's schema object
|
|
302
|
+
* @throws Error if no schema is found for the specified media type
|
|
303
|
+
*/
|
|
263
304
|
toSchema(mediaType = 'application/json') {
|
|
264
305
|
if (this.schema) {
|
|
265
306
|
return this.schema;
|
|
@@ -270,6 +311,12 @@ class OasParameter {
|
|
|
270
311
|
}
|
|
271
312
|
return schema;
|
|
272
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* Converts this OAS parameter to an OpenAPI v3 JSON schema representation.
|
|
316
|
+
*
|
|
317
|
+
* @param options - Conversion options including reference handling and formatting preferences
|
|
318
|
+
* @returns OpenAPI v3 parameter object with all properties and validation constraints
|
|
319
|
+
*/
|
|
273
320
|
toJsonSchema(options) {
|
|
274
321
|
return {
|
|
275
322
|
name: this.name,
|
|
@@ -4,22 +4,9 @@ import { type OasExampleRefData, type OasSchemaRefData } from '../ref/ref-types.
|
|
|
4
4
|
import { type OasSchemaData } from '../schema/schema-types.js';
|
|
5
5
|
import * as v from 'valibot';
|
|
6
6
|
export type OasParameterLocation = 'query' | 'header' | 'path' | 'cookie';
|
|
7
|
-
export declare const oasParameterLocation: v.
|
|
8
|
-
readonly query: "query";
|
|
9
|
-
readonly header: "header";
|
|
10
|
-
readonly path: "path";
|
|
11
|
-
readonly cookie: "cookie";
|
|
12
|
-
}, undefined>;
|
|
7
|
+
export declare const oasParameterLocation: v.GenericSchema<OasParameterLocation>;
|
|
13
8
|
export type OasParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
14
|
-
export declare const oasParameterStyle: v.
|
|
15
|
-
readonly matrix: "matrix";
|
|
16
|
-
readonly label: "label";
|
|
17
|
-
readonly form: "form";
|
|
18
|
-
readonly simple: "simple";
|
|
19
|
-
readonly spaceDelimited: "spaceDelimited";
|
|
20
|
-
readonly pipeDelimited: "pipeDelimited";
|
|
21
|
-
readonly deepObject: "deepObject";
|
|
22
|
-
}, undefined>;
|
|
9
|
+
export declare const oasParameterStyle: v.GenericSchema<OasParameterStyle>;
|
|
23
10
|
export type OasParameterData = {
|
|
24
11
|
oasType: 'parameter';
|
|
25
12
|
allowEmptyValue?: boolean;
|
|
@@ -35,47 +22,5 @@ export type OasParameterData = {
|
|
|
35
22
|
schema?: OasSchemaData | OasSchemaRefData;
|
|
36
23
|
style: OasParameterStyle;
|
|
37
24
|
};
|
|
38
|
-
export declare const oasParameterData: v.
|
|
39
|
-
readonly oasType: v.LiteralSchema<"parameter", undefined>;
|
|
40
|
-
readonly allowEmptyValue: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
41
|
-
readonly allowReserved: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
-
readonly content: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
43
|
-
readonly oasType: v.LiteralSchema<"mediaType", undefined>;
|
|
44
|
-
readonly mediaType: v.StringSchema<undefined>;
|
|
45
|
-
readonly schema: v.OptionalSchema<v.UnionSchema<[v.GenericSchema<OasSchemaData>, v.GenericSchema<OasSchemaRefData>], undefined>, undefined>;
|
|
46
|
-
readonly examples: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
47
|
-
readonly oasType: v.LiteralSchema<"example", undefined>;
|
|
48
|
-
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
-
readonly description: v.OptionalSchema<v.GenericSchema<string>, undefined>;
|
|
50
|
-
readonly value: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
51
|
-
}, undefined>, v.GenericSchema<OasExampleRefData>], undefined>, undefined>, undefined>;
|
|
52
|
-
}, undefined>, undefined>, undefined>;
|
|
53
|
-
readonly deprecated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
54
|
-
readonly description: v.OptionalSchema<v.GenericSchema<string>, undefined>;
|
|
55
|
-
readonly examples: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
56
|
-
readonly oasType: v.LiteralSchema<"example", undefined>;
|
|
57
|
-
readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
58
|
-
readonly description: v.OptionalSchema<v.GenericSchema<string>, undefined>;
|
|
59
|
-
readonly value: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
60
|
-
}, undefined>, v.GenericSchema<OasExampleRefData>], undefined>, undefined>, undefined>;
|
|
61
|
-
readonly explode: v.BooleanSchema<undefined>;
|
|
62
|
-
readonly location: v.EnumSchema<{
|
|
63
|
-
readonly query: "query";
|
|
64
|
-
readonly header: "header";
|
|
65
|
-
readonly path: "path";
|
|
66
|
-
readonly cookie: "cookie";
|
|
67
|
-
}, undefined>;
|
|
68
|
-
readonly name: v.StringSchema<undefined>;
|
|
69
|
-
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
70
|
-
readonly schema: v.OptionalSchema<v.UnionSchema<[v.GenericSchema<OasSchemaData>, v.GenericSchema<OasSchemaRefData>], undefined>, undefined>;
|
|
71
|
-
readonly style: v.EnumSchema<{
|
|
72
|
-
readonly matrix: "matrix";
|
|
73
|
-
readonly label: "label";
|
|
74
|
-
readonly form: "form";
|
|
75
|
-
readonly simple: "simple";
|
|
76
|
-
readonly spaceDelimited: "spaceDelimited";
|
|
77
|
-
readonly pipeDelimited: "pipeDelimited";
|
|
78
|
-
readonly deepObject: "deepObject";
|
|
79
|
-
}, undefined>;
|
|
80
|
-
}, undefined>;
|
|
25
|
+
export declare const oasParameterData: v.GenericSchema<OasParameterData>;
|
|
81
26
|
//# sourceMappingURL=parameter-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter-types.d.ts","sourceRoot":"","sources":["../../../src/oas/parameter/parameter-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,6BAA6B,CAAA;AAEjF,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,iCAAiC,CAAA;AACzF,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAGtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,CAAC,MAAM,SA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A;IAC7D,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,oBAAoB,CAAA;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAA;IACzC,KAAK,EAAE,iBAAiB,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,aAAa,CAAC,gBAAgB,CAc7D,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type OasParameterData } from '../parameter/parameter-types.js';
|
|
2
|
+
import { type OasParameterRefData } from '../ref/ref-types.js';
|
|
3
|
+
import * as v from 'valibot';
|
|
4
|
+
export type OasPathItemData = {
|
|
5
|
+
oasType: 'pathItem';
|
|
6
|
+
$ref?: string;
|
|
7
|
+
summary?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
parameters?: (OasParameterData | OasParameterRefData)[];
|
|
10
|
+
};
|
|
11
|
+
export declare const oasPathItemData: v.GenericSchema<OasPathItemData>;
|
|
12
|
+
//# sourceMappingURL=pathItem-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pathItem-types.d.ts","sourceRoot":"","sources":["../../../src/oas/pathItem/pathItem-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,iCAAiC,CAAA;AACzF,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,qBAAqB,CAAA;AACnF,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,UAAU,CAAC,EAAE,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,aAAa,CAAC,eAAe,CAO3D,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.oasPathItemData = void 0;
|
|
37
|
+
const markdown_types_js_1 = require("../markdown/markdown-types.js");
|
|
38
|
+
const parameter_types_js_1 = require("../parameter/parameter-types.js");
|
|
39
|
+
const ref_types_js_1 = require("../ref/ref-types.js");
|
|
40
|
+
const v = __importStar(require("valibot"));
|
|
41
|
+
exports.oasPathItemData = v.object({
|
|
42
|
+
oasType: v.literal('pathItem'),
|
|
43
|
+
$ref: v.optional(v.string()),
|
|
44
|
+
summary: v.optional(v.string()),
|
|
45
|
+
description: v.optional(markdown_types_js_1.markdown),
|
|
46
|
+
// servers: z.array(server).optional(),
|
|
47
|
+
parameters: v.optional(v.array(v.union([parameter_types_js_1.oasParameterData, ref_types_js_1.oasParameterRefData])))
|
|
48
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type OasMediaTypeData } from '../mediaType/mediaType-types.js';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export type OasRequestBodyData = {
|
|
4
|
+
oasType: 'requestBody';
|
|
5
|
+
description?: string;
|
|
6
|
+
content: Record<string, OasMediaTypeData>;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const oasRequestBodyData: v.GenericSchema<OasRequestBodyData>;
|
|
10
|
+
//# sourceMappingURL=requestBody-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestBody-types.d.ts","sourceRoot":"","sources":["../../../src/oas/requestBody/requestBody-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,iCAAiC,CAAA;AACzF,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,aAAa,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,aAAa,CAAC,kBAAkB,CAKjE,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.oasRequestBodyData = void 0;
|
|
37
|
+
const markdown_types_js_1 = require("../markdown/markdown-types.js");
|
|
38
|
+
const mediaType_types_js_1 = require("../mediaType/mediaType-types.js");
|
|
39
|
+
const v = __importStar(require("valibot"));
|
|
40
|
+
exports.oasRequestBodyData = v.object({
|
|
41
|
+
oasType: v.literal('requestBody'),
|
|
42
|
+
description: v.optional(markdown_types_js_1.markdown),
|
|
43
|
+
content: v.record(v.string(), mediaType_types_js_1.oasMediaTypeData),
|
|
44
|
+
required: v.optional(v.boolean())
|
|
45
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type OasHeaderData } from '../header/header-types.js';
|
|
2
|
+
import { type OasMediaTypeData } from '../mediaType/mediaType-types.js';
|
|
3
|
+
import { type OasHeaderRefData } from '../ref/ref-types.js';
|
|
4
|
+
import * as v from 'valibot';
|
|
5
|
+
export type OasResponseData = {
|
|
6
|
+
oasType: 'response';
|
|
7
|
+
description: string;
|
|
8
|
+
headers?: Record<string, OasHeaderData | OasHeaderRefData>;
|
|
9
|
+
content?: Record<string, OasMediaTypeData>;
|
|
10
|
+
};
|
|
11
|
+
export declare const oasResponseData: v.GenericSchema<OasResponseData>;
|
|
12
|
+
//# sourceMappingURL=response-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-types.d.ts","sourceRoot":"","sources":["../../../src/oas/response/response-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,2BAA2B,CAAA;AAC7E,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,iCAAiC,CAAA;AACzF,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,qBAAqB,CAAA;AAC7E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,UAAU,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,gBAAgB,CAAC,CAAA;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CAE3C,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,aAAa,CAAC,eAAe,CAM3D,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.oasResponseData = void 0;
|
|
37
|
+
const header_types_js_1 = require("../header/header-types.js");
|
|
38
|
+
const mediaType_types_js_1 = require("../mediaType/mediaType-types.js");
|
|
39
|
+
const ref_types_js_1 = require("../ref/ref-types.js");
|
|
40
|
+
const v = __importStar(require("valibot"));
|
|
41
|
+
exports.oasResponseData = v.object({
|
|
42
|
+
oasType: v.literal('response'),
|
|
43
|
+
description: v.string(),
|
|
44
|
+
headers: v.optional(v.record(v.string(), v.union([header_types_js_1.oasHeaderData, ref_types_js_1.oasHeaderRefData]))),
|
|
45
|
+
content: v.optional(v.record(v.string(), mediaType_types_js_1.oasMediaTypeData))
|
|
46
|
+
// links: z.record(z.union([link, ref])).optional()
|
|
47
|
+
});
|
|
@@ -88,8 +88,8 @@ const toSchemaV3 = ({ schema, context }) => {
|
|
|
88
88
|
})
|
|
89
89
|
.with({ anyOf: ts_pattern_1.P.array() }, matched => {
|
|
90
90
|
return context.trace('anyOf', () => {
|
|
91
|
-
const
|
|
92
|
-
const
|
|
91
|
+
const _lastThree = context.stackTrail.slice(-3).toString();
|
|
92
|
+
const _lastFive = context.stackTrail.slice(-5).toString();
|
|
93
93
|
// deno-lint-ignore ban-ts-comment
|
|
94
94
|
// @ts-expect-error
|
|
95
95
|
if (matched['x-expansionResources']) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toServerV3.d.ts","sourceRoot":"","sources":["../../../src/oas/server/toServerV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"toServerV3.d.ts","sourceRoot":"","sources":["../../../src/oas/server/toServerV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAGvC,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,SAAS,CAAC,YAAY,EAAE,CAAA;IACjC,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,sBAAsB,eAAe,KAAG,SAAS,EAI5E,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,OAAO,EAAE,SAAS,CAAC,YAAY,EAAE,GAAG,SAAS,CAAA;IAC7C,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,sBAGjC,uBAAuB,KAAG,SAAS,EAAE,GAAG,SAM1C,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,SAAS,CAAC,YAAY,CAAA;IAC9B,OAAO,EAAE,YAAY,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,qBAAqB,cAAc,KAAG,SAgBhE,CAAA"}
|
|
@@ -13,41 +13,14 @@ export type StringFormat = 'date-time' | 'time' | 'date' | 'duration' | 'email'
|
|
|
13
13
|
* Defines the standard string formats supported by OpenAPI v3,
|
|
14
14
|
* including date/time formats, network formats, and encoding formats.
|
|
15
15
|
*/
|
|
16
|
-
export declare const stringFormat: v.
|
|
17
|
-
readonly 'date-time': "date-time";
|
|
18
|
-
readonly time: "time";
|
|
19
|
-
readonly date: "date";
|
|
20
|
-
readonly duration: "duration";
|
|
21
|
-
readonly email: "email";
|
|
22
|
-
readonly hostname: "hostname";
|
|
23
|
-
readonly ipv4: "ipv4";
|
|
24
|
-
readonly ipv6: "ipv6";
|
|
25
|
-
readonly uuid: "uuid";
|
|
26
|
-
readonly uri: "uri";
|
|
27
|
-
readonly regex: "regex";
|
|
28
|
-
readonly password: "password";
|
|
29
|
-
readonly byte: "byte";
|
|
30
|
-
readonly binary: "binary";
|
|
31
|
-
}, undefined>;
|
|
16
|
+
export declare const stringFormat: v.GenericSchema<StringFormat>;
|
|
32
17
|
/**
|
|
33
18
|
* Valibot schema for validating OpenAPI string data objects.
|
|
34
19
|
*
|
|
35
20
|
* Validates string schema objects including length constraints,
|
|
36
21
|
* pattern validation, format specifiers, and enumeration values.
|
|
37
22
|
*/
|
|
38
|
-
export declare const oasStringData: v.
|
|
39
|
-
readonly type: v.LiteralSchema<"string", undefined>;
|
|
40
|
-
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
-
readonly default: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
-
readonly maxLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
44
|
-
readonly minLength: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
45
|
-
readonly pattern: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
46
|
-
readonly enum: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
47
|
-
readonly format: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
-
readonly nullable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
49
|
-
readonly example: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
-
}, undefined>;
|
|
23
|
+
export declare const oasStringData: v.GenericSchema<OasStringData>;
|
|
51
24
|
/**
|
|
52
25
|
* Data type for OpenAPI string schema objects.
|
|
53
26
|
*
|