@skmtc/core 0.16.2 → 0.18.1
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/GenerateContext.d.ts +3 -3
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +45 -32
- package/esm/context/ParseContext.d.ts +16 -0
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +26 -0
- package/esm/context/ParseIssue.d.ts +24 -4
- package/esm/context/ParseIssue.d.ts.map +1 -1
- package/esm/context/ParseIssue.js +12 -4
- package/esm/context/parseTypes.d.ts +23 -1
- package/esm/context/parseTypes.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +29 -0
- package/esm/dsl/model/toModelEntry.d.ts +9 -3
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.js +29 -1
- package/esm/dsl/model/toModelProjectionBase.d.ts +16 -3
- package/esm/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelProjectionBase.js +3 -3
- package/esm/dsl/model/types.d.ts +46 -0
- package/esm/dsl/model/types.d.ts.map +1 -1
- package/esm/dsl/operation/gql/types.d.ts +6 -1
- package/esm/dsl/operation/gql/types.d.ts.map +1 -1
- package/esm/dsl/operation/oas/types.d.ts +6 -1
- package/esm/dsl/operation/oas/types.d.ts.map +1 -1
- package/esm/enrichments/validateConfig.d.ts +60 -0
- package/esm/enrichments/validateConfig.d.ts.map +1 -0
- package/esm/enrichments/validateConfig.js +176 -0
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +2 -11
- package/esm/oas/response/toPrimaryResponseCode.d.ts +19 -0
- package/esm/oas/response/toPrimaryResponseCode.d.ts.map +1 -0
- package/esm/oas/response/toPrimaryResponseCode.js +33 -0
- package/esm/oas/webhook/Webhook.d.ts.map +1 -1
- package/esm/oas/webhook/Webhook.js +2 -11
- package/esm/parse/v3-0/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/esm/parse/v3-0/_merge-all-of/decompose-union.js +8 -12
- package/esm/parse/v3-0/_merge-all-of/merge-union.d.ts.map +1 -1
- package/esm/parse/v3-0/_merge-all-of/merge-union.js +0 -8
- package/esm/parse/v3-0/integer/toInteger.js +4 -1
- package/esm/parse/v3-0/number/toNumber.js +4 -1
- package/esm/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/parse/v3-0/operation/toOperationsV3.js +5 -1
- package/esm/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-0/schema/toSchemasV3.js +35 -1
- package/esm/parse/v3-0/string/toString.d.ts.map +1 -1
- package/esm/parse/v3-0/string/toString.js +4 -11
- package/esm/parse/v3-1/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/esm/parse/v3-1/_merge-all-of/decompose-union.js +8 -12
- package/esm/parse/v3-1/_merge-all-of/merge-union.d.ts.map +1 -1
- package/esm/parse/v3-1/_merge-all-of/merge-union.js +0 -8
- package/esm/parse/v3-1/integer/toInteger.js +4 -1
- package/esm/parse/v3-1/number/toNumber.js +4 -1
- package/esm/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/parse/v3-1/operation/toOperationsV3.js +5 -1
- package/esm/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-1/schema/toSchemasV3.js +34 -7
- package/esm/parse/v3-1/string/toString.d.ts.map +1 -1
- package/esm/parse/v3-1/string/toString.js +4 -11
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +14 -0
- package/esm/types/Settings.d.ts +16 -3
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +19 -13
- package/package.json +1 -1
- package/script/context/GenerateContext.d.ts +3 -3
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +45 -32
- package/script/context/ParseContext.d.ts +16 -0
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +26 -0
- package/script/context/ParseIssue.d.ts +24 -4
- package/script/context/ParseIssue.d.ts.map +1 -1
- package/script/context/ParseIssue.js +12 -4
- package/script/context/parseTypes.d.ts +23 -1
- package/script/context/parseTypes.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +29 -0
- package/script/dsl/model/toModelEntry.d.ts +9 -3
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.js +65 -1
- package/script/dsl/model/toModelProjectionBase.d.ts +16 -3
- package/script/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/script/dsl/model/toModelProjectionBase.js +3 -3
- package/script/dsl/model/types.d.ts +46 -0
- package/script/dsl/model/types.d.ts.map +1 -1
- package/script/dsl/operation/gql/types.d.ts +6 -1
- package/script/dsl/operation/gql/types.d.ts.map +1 -1
- package/script/dsl/operation/oas/types.d.ts +6 -1
- package/script/dsl/operation/oas/types.d.ts.map +1 -1
- package/script/enrichments/validateConfig.d.ts +60 -0
- package/script/enrichments/validateConfig.d.ts.map +1 -0
- package/script/enrichments/validateConfig.js +213 -0
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +2 -11
- package/script/oas/response/toPrimaryResponseCode.d.ts +19 -0
- package/script/oas/response/toPrimaryResponseCode.d.ts.map +1 -0
- package/script/oas/response/toPrimaryResponseCode.js +37 -0
- package/script/oas/webhook/Webhook.d.ts.map +1 -1
- package/script/oas/webhook/Webhook.js +2 -11
- package/script/parse/v3-0/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/script/parse/v3-0/_merge-all-of/decompose-union.js +8 -12
- package/script/parse/v3-0/_merge-all-of/merge-union.d.ts.map +1 -1
- package/script/parse/v3-0/_merge-all-of/merge-union.js +0 -8
- package/script/parse/v3-0/integer/toInteger.js +4 -1
- package/script/parse/v3-0/number/toNumber.js +4 -1
- package/script/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
- package/script/parse/v3-0/operation/toOperationsV3.js +5 -1
- package/script/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-0/schema/toSchemasV3.js +35 -1
- package/script/parse/v3-0/string/toString.d.ts.map +1 -1
- package/script/parse/v3-0/string/toString.js +3 -10
- package/script/parse/v3-1/_merge-all-of/decompose-union.d.ts.map +1 -1
- package/script/parse/v3-1/_merge-all-of/decompose-union.js +8 -12
- package/script/parse/v3-1/_merge-all-of/merge-union.d.ts.map +1 -1
- package/script/parse/v3-1/_merge-all-of/merge-union.js +0 -8
- package/script/parse/v3-1/integer/toInteger.js +4 -1
- package/script/parse/v3-1/number/toNumber.js +4 -1
- package/script/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
- package/script/parse/v3-1/operation/toOperationsV3.js +5 -1
- package/script/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-1/schema/toSchemasV3.js +34 -7
- package/script/parse/v3-1/string/toString.d.ts.map +1 -1
- package/script/parse/v3-1/string/toString.js +3 -10
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +14 -0
- package/script/types/Settings.d.ts +16 -3
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +16 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.d.ts","sourceRoot":"","sources":["../../../src/oas/operation/Operation.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO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,CAAA;IACpD,iCAAiC;IACjC,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,CAAA;IAChC;;;;OAIG;gBACS,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAmB/D;;;;;;OAMG;IACH,iBAAiB,IAAI,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,SAAS;IAMjE;;;;;;OAMG;IACH,qBAAqB,IAAI,MAAM,GAAG,SAAS;IAI3C;;;;;;OAMG;IACH,aAAa,CAAC,CAAC,EACb,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,oBAAoB,KAAK,CAAC,EACzD,SAAS,SAAqB,GAC7B,CAAC,GAAG,SAAS;IAOhB;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,EAAE,GAAG,YAAY,EAAE;IAQzD;;;;;OAKG;IACH,kBAAkB,CAAC,MAAM,CAAC,EAAE,oBAAoB,EAAE,GAAG,SAAS;IAY9D;;;;;OAKG;IACH,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAAC,eAAe;IAiBrE;;;;OAIG;IACH,MAAM,IAAI,MAAM;CAcjB"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OasOperation = void 0;
|
|
4
4
|
require("../../_dnt.polyfills.js");
|
|
5
5
|
const Object_js_1 = require("../object/Object.js");
|
|
6
|
+
const toPrimaryResponseCode_js_1 = require("../response/toPrimaryResponseCode.js");
|
|
6
7
|
const OasBase_js_1 = require("../../types/OasBase.js");
|
|
7
8
|
class OasOperation extends OasBase_js_1.OasBase {
|
|
8
9
|
/**
|
|
@@ -159,17 +160,7 @@ class OasOperation extends OasBase_js_1.OasBase {
|
|
|
159
160
|
* @returns Success status code as string or undefined if none found
|
|
160
161
|
*/
|
|
161
162
|
toSuccessResponseCode() {
|
|
162
|
-
|
|
163
|
-
.map(httpCode => parseInt(httpCode))
|
|
164
|
-
.sort((a, b) => a - b)
|
|
165
|
-
.find(httpCode => httpCode >= 200 && httpCode < 300);
|
|
166
|
-
if (successCode) {
|
|
167
|
-
return successCode.toString();
|
|
168
|
-
}
|
|
169
|
-
if (this.responses.default) {
|
|
170
|
-
return 'default';
|
|
171
|
-
}
|
|
172
|
-
return undefined;
|
|
163
|
+
return (0, toPrimaryResponseCode_js_1.toPrimaryResponseCode)(this.responses);
|
|
173
164
|
}
|
|
174
165
|
/**
|
|
175
166
|
* Maps the request body schema to a custom value using the provided mapping function.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { OasResponse } from './Response.js';
|
|
2
|
+
import type { OasRef } from '../ref/Ref.js';
|
|
3
|
+
/**
|
|
4
|
+
* The status code of the primary success/ack response in a `responses` map.
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI response keys may be a specific code (`200`), a range (`2XX`, `4XX`,
|
|
7
|
+
* …), or `default`. The primary 2xx is resolved in that order of specificity:
|
|
8
|
+
* 1. the lowest specific `2xx` numeric code,
|
|
9
|
+
* 2. otherwise a `2XX` range key (case-insensitive),
|
|
10
|
+
* 3. otherwise `default`,
|
|
11
|
+
* 4. otherwise `undefined`.
|
|
12
|
+
*
|
|
13
|
+
* `parseInt('2XX')` is `2` (< 200), so the numeric scan never mis-claims a
|
|
14
|
+
* range key — the range step handles it explicitly. Shared by
|
|
15
|
+
* `OasOperation.toSuccessResponseCode` and `OasWebhook.toAckResponseCode` so
|
|
16
|
+
* the two cannot drift.
|
|
17
|
+
*/
|
|
18
|
+
export declare const toPrimaryResponseCode: (responses: Record<string, OasResponse | OasRef<"response">>) => string | undefined;
|
|
19
|
+
//# sourceMappingURL=toPrimaryResponseCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPrimaryResponseCode.d.ts","sourceRoot":"","sources":["../../../src/oas/response/toPrimaryResponseCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,KAC1D,MAAM,GAAG,SAqBX,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toPrimaryResponseCode = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The status code of the primary success/ack response in a `responses` map.
|
|
6
|
+
*
|
|
7
|
+
* OpenAPI response keys may be a specific code (`200`), a range (`2XX`, `4XX`,
|
|
8
|
+
* …), or `default`. The primary 2xx is resolved in that order of specificity:
|
|
9
|
+
* 1. the lowest specific `2xx` numeric code,
|
|
10
|
+
* 2. otherwise a `2XX` range key (case-insensitive),
|
|
11
|
+
* 3. otherwise `default`,
|
|
12
|
+
* 4. otherwise `undefined`.
|
|
13
|
+
*
|
|
14
|
+
* `parseInt('2XX')` is `2` (< 200), so the numeric scan never mis-claims a
|
|
15
|
+
* range key — the range step handles it explicitly. Shared by
|
|
16
|
+
* `OasOperation.toSuccessResponseCode` and `OasWebhook.toAckResponseCode` so
|
|
17
|
+
* the two cannot drift.
|
|
18
|
+
*/
|
|
19
|
+
const toPrimaryResponseCode = (responses) => {
|
|
20
|
+
const keys = Object.keys(responses);
|
|
21
|
+
const [lowest2xx] = keys
|
|
22
|
+
.map(code => parseInt(code))
|
|
23
|
+
.filter(code => code >= 200 && code < 300)
|
|
24
|
+
.sort((a, b) => a - b);
|
|
25
|
+
if (lowest2xx !== undefined) {
|
|
26
|
+
return lowest2xx.toString();
|
|
27
|
+
}
|
|
28
|
+
const range2xx = keys.find(code => /^2XX$/i.test(code));
|
|
29
|
+
if (range2xx !== undefined) {
|
|
30
|
+
return range2xx;
|
|
31
|
+
}
|
|
32
|
+
if (responses.default) {
|
|
33
|
+
return 'default';
|
|
34
|
+
}
|
|
35
|
+
return undefined;
|
|
36
|
+
};
|
|
37
|
+
exports.toPrimaryResponseCode = toPrimaryResponseCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Webhook.d.ts","sourceRoot":"","sources":["../../../src/oas/webhook/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"Webhook.d.ts","sourceRoot":"","sources":["../../../src/oas/webhook/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,OAAO,KAAK,EAA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M,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACpD,+BAA+B;IAC/B,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,CAAA;gBAEpB,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAmB7D;;;;OAIG;IACH,SAAS,IAAI,cAAc,GAAG,SAAS;IAIvC;;;;;OAKG;IACH,eAAe,CAAC,SAAS,SAAqB,GAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAIzF;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,EAAE,GAAG,YAAY,EAAE;IAQzD;;;;;OAKG;IACH,iBAAiB,IAAI,MAAM,GAAG,SAAS;IAIvC;;;OAGG;IACH,aAAa,IAAI,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,SAAS;IAM7D;;OAEG;IACH,MAAM,IAAI,MAAM;CAgBjB"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OasWebhook = void 0;
|
|
4
4
|
require("../../_dnt.polyfills.js");
|
|
5
|
+
const toPrimaryResponseCode_js_1 = require("../response/toPrimaryResponseCode.js");
|
|
5
6
|
const OasBase_js_1 = require("../../types/OasBase.js");
|
|
6
7
|
/**
|
|
7
8
|
* Represents an OpenAPI 3.1 webhook — a third OAS subject, peer to
|
|
@@ -185,17 +186,7 @@ class OasWebhook extends OasBase_js_1.OasBase {
|
|
|
185
186
|
* not what a client receives (cf. {@link OasOperation.toSuccessResponseCode}).
|
|
186
187
|
*/
|
|
187
188
|
toAckResponseCode() {
|
|
188
|
-
|
|
189
|
-
.map(httpCode => parseInt(httpCode))
|
|
190
|
-
.sort((a, b) => a - b)
|
|
191
|
-
.find(httpCode => httpCode >= 200 && httpCode < 300);
|
|
192
|
-
if (ackCode) {
|
|
193
|
-
return ackCode.toString();
|
|
194
|
-
}
|
|
195
|
-
if (this.responses.default) {
|
|
196
|
-
return 'default';
|
|
197
|
-
}
|
|
198
|
-
return undefined;
|
|
189
|
+
return (0, toPrimaryResponseCode_js_1.toPrimaryResponseCode)(this.responses);
|
|
199
190
|
}
|
|
200
191
|
/**
|
|
201
192
|
* The primary acknowledgement response definition (the body/headers the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decompose-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/_merge-all-of/decompose-union.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQ/D,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,YAAY,CAAA;IAC5B,UAAU,EAAE,CAAC,YAAY,GAAG,eAAe,CAAC,EAAE,CAAA;IAC9C,aAAa,EAAE,YAAY,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,cAAc,GAAI,uBAAuB,kBAAkB,KAAG,
|
|
1
|
+
{"version":3,"file":"decompose-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/_merge-all-of/decompose-union.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQ/D,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,YAAY,CAAA;IAC5B,UAAU,EAAE,CAAC,YAAY,GAAG,eAAe,CAAC,EAAE,CAAA;IAC9C,aAAa,EAAE,YAAY,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,cAAc,GAAI,uBAAuB,kBAAkB,KAAG,oBA2C1E,CAAA"}
|
|
@@ -4,7 +4,6 @@ exports.decomposeUnion = void 0;
|
|
|
4
4
|
// Convert a schema object into an array of schemas that can be merged iteratively into a new schema
|
|
5
5
|
const decomposeUnion = ({ schema, groupType }) => {
|
|
6
6
|
if (!schema[groupType]) {
|
|
7
|
-
console.log('NO GROUP TYPE', JSON.stringify(schema, null, 2));
|
|
8
7
|
return {
|
|
9
8
|
beforeExcluded: {},
|
|
10
9
|
decomposed: [schema],
|
|
@@ -42,15 +41,13 @@ const decomposeUnion = ({ schema, groupType }) => {
|
|
|
42
41
|
return result;
|
|
43
42
|
};
|
|
44
43
|
exports.decomposeUnion = decomposeUnion;
|
|
45
|
-
//
|
|
46
|
-
// cross-product-merged into each member.
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
// for every member and collapses the union to an empty array. TypeScript
|
|
53
|
-
// can't model `not` anyway, so it rides the union wrapper, ignored.
|
|
44
|
+
// Union-level keys: kept on the union (via beforeExcluded/afterExcluded)
|
|
45
|
+
// rather than cross-product-merged into each member. Merging a metadata key
|
|
46
|
+
// *into* a member would resolve `$ref` members (to merge it in), losing their
|
|
47
|
+
// names — `toUnion` already captures these on the union itself.
|
|
48
|
+
// (`not` is deliberately NOT excluded here — it has no faithful TypeScript
|
|
49
|
+
// representation, so a schema using it is refused upstream in `toSchemaV3`
|
|
50
|
+
// rather than silently dropped from the union.)
|
|
54
51
|
const excludedProperties = [
|
|
55
52
|
'discriminator',
|
|
56
53
|
'default',
|
|
@@ -61,8 +58,7 @@ const excludedProperties = [
|
|
|
61
58
|
'examples',
|
|
62
59
|
'readOnly',
|
|
63
60
|
'writeOnly',
|
|
64
|
-
'deprecated'
|
|
65
|
-
'not'
|
|
61
|
+
'deprecated'
|
|
66
62
|
];
|
|
67
63
|
const exclude = (entries) => {
|
|
68
64
|
return entries.reduce((acc, [key, value]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/_merge-all-of/merge-union.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI3E,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,+BAA+B,cAAc,KAAG,iBAiC1E,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,sCAK/B,qBAAqB,KAAG,
|
|
1
|
+
{"version":3,"file":"merge-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/_merge-all-of/merge-union.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI3E,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,+BAA+B,cAAc,KAAG,iBAiC1E,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,sCAK/B,qBAAqB,KAAG,YAyB1B,CAAA"}
|
|
@@ -46,14 +46,6 @@ const mergeCrossProduct = ({ first, second, getRef, groupType }) => {
|
|
|
46
46
|
}
|
|
47
47
|
})
|
|
48
48
|
.filter(item => item !== undefined);
|
|
49
|
-
// Defensive floor: when both groups are non-empty the cross product is
|
|
50
|
-
// non-empty, so an empty `mergedGroup` means every merge *failed* (an
|
|
51
|
-
// unmergeable constraint in `secondGroup`). Keep the un-merged `firstGroup`
|
|
52
|
-
// rather than collapsing to an empty union. A genuinely empty input union
|
|
53
|
-
// (`anyOf: []` → empty group) is left empty so `toSchemasV3` still throws.
|
|
54
|
-
if (mergedGroup.length === 0 && firstGroup.length > 0 && secondGroup.length > 0) {
|
|
55
|
-
return { [groupType]: firstGroup };
|
|
56
|
-
}
|
|
57
49
|
return {
|
|
58
50
|
[groupType]: mergedGroup.flatMap(item => {
|
|
59
51
|
if (!(0, refFns_js_1.isRef)(item) && Array.isArray(item[groupType])) {
|
|
@@ -133,9 +133,12 @@ const parseIntegerFormat = ({ format, context, parent, stackTrail }) => {
|
|
|
133
133
|
return undefined;
|
|
134
134
|
}
|
|
135
135
|
if (!v.is(integer_types_js_1.integerFormat, format)) {
|
|
136
|
+
// `format` is an open vocabulary; a value the IR's integerFormat can't
|
|
137
|
+
// hold is dropped. Recorded at `debug` — the dropped hint is
|
|
138
|
+
// informational, not a correctness issue.
|
|
136
139
|
context.logIssue({
|
|
137
140
|
key: 'format',
|
|
138
|
-
level: '
|
|
141
|
+
level: 'debug',
|
|
139
142
|
message: `Invalid format: ${format}`,
|
|
140
143
|
parent,
|
|
141
144
|
stackTrail,
|
|
@@ -132,9 +132,12 @@ const parseNumberFormat = ({ format, context, parent, stackTrail }) => {
|
|
|
132
132
|
return undefined;
|
|
133
133
|
}
|
|
134
134
|
if (!v.is(number_types_js_1.numberFormat, format)) {
|
|
135
|
+
// `format` is an open vocabulary; a value the IR's numberFormat can't
|
|
136
|
+
// hold (e.g. `decimal`) is dropped. Recorded at `debug` — the dropped
|
|
137
|
+
// hint is informational, not a correctness issue.
|
|
135
138
|
context.logIssue({
|
|
136
139
|
key: 'format',
|
|
137
|
-
level: '
|
|
140
|
+
level: 'debug',
|
|
138
141
|
message: `Invalid format: ${format}`,
|
|
139
142
|
parent,
|
|
140
143
|
stackTrail,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationsV3.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/operation/toOperationsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAItE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAOpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAOD,eAAO,MAAM,aAAa,GAAI,mDAK3B,iBAAiB,KAAG,
|
|
1
|
+
{"version":3,"file":"toOperationsV3.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/operation/toOperationsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAItE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAOpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAOD,eAAO,MAAM,aAAa,GAAI,mDAK3B,iBAAiB,KAAG,YAuEtB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,SAAS,CAAC,WAAW,CAAA;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,gCAI5B,kBAAkB,KAAG,YAAY,EA6EnC,CAAA"}
|
|
@@ -14,7 +14,11 @@ const toExternalDocs_js_1 = require("../externalDocs/toExternalDocs.js");
|
|
|
14
14
|
const toServerV3_js_1 = require("../server/toServerV3.js");
|
|
15
15
|
const toOperationV3 = ({ operation, operationInfo, stackTrail, context }) => {
|
|
16
16
|
const { method, path, pathItem } = operationInfo;
|
|
17
|
-
const { operationId, tags, summary, description, parameters, requestBody, responses, deprecated, security, externalDocs, servers,
|
|
17
|
+
const { operationId, tags, summary, description, parameters, requestBody, responses, deprecated, security, externalDocs, servers,
|
|
18
|
+
// Callbacks are a deliberate non-goal (no out-of-band callback codegen).
|
|
19
|
+
// Pull it out so it is dropped silently instead of warned as an
|
|
20
|
+
// unexpected property on every operation that declares one.
|
|
21
|
+
callbacks: _callbacks, ...skipped } = operation;
|
|
18
22
|
const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
|
|
19
23
|
skipped,
|
|
20
24
|
parent: operation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toSchemasV3.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/schema/toSchemasV3.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAarD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAChE,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,CAAA;IAC3E,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,kCAIzB,eAAe,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAmB/D,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAA;IACvF,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,kCAIjC,uBAAuB,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC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AED,eAAO,MAAM,mBAAmB,GAAI,kCAIjC,uBAAuB,KAAG,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,SAM3E,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,CAAA;IAC1D,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AA0CD,eAAO,MAAM,UAAU,GAAI,iCAIxB,cAAc,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CA6P9C,CAAA;AA+CD,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,GAAG,SAAS,CAAA;IACtE,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,iCAIhC,sBAAsB,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAM1D,CAAA"}
|
|
@@ -78,8 +78,37 @@ const toSchemaV3 = ({ schema, stackTrail, context }) => {
|
|
|
78
78
|
if ((0, refFns_js_1.isRef)(schema)) {
|
|
79
79
|
return (0, toRefV31_js_1.toRefV31)({ ref: schema, refType: 'schema', stackTrail, context });
|
|
80
80
|
}
|
|
81
|
+
// OpenAPI `not` has no faithful TypeScript representation: a generated type
|
|
82
|
+
// that ignored it would *widen* the contract (accepting shapes the schema
|
|
83
|
+
// forbids). Refuse the schema rather than emit a type that lies. The throw
|
|
84
|
+
// is isolated by `tryParseAt` into an `INVALID_SCHEMA` issue, and consumers
|
|
85
|
+
// of this schema are pruned via `removeErroredItems` (INVALID_DEPENDENCY_REF).
|
|
86
|
+
if ('not' in schema) {
|
|
87
|
+
throw new Error('Schema uses unsupported "not" keyword');
|
|
88
|
+
}
|
|
81
89
|
if ('allOf' in schema && Array.isArray(schema.allOf)) {
|
|
82
90
|
return stackTrail.trace('allOf', st => {
|
|
91
|
+
// A single-member allOf collapses to its sole member — the value must
|
|
92
|
+
// satisfy exactly that one schema. When the member is a `$ref`, keep it
|
|
93
|
+
// LAZY (as an OasRef) rather than resolving + merging its target: a
|
|
94
|
+
// `{ allOf: [{$ref: self}], nullable: true }` (a nullable reference
|
|
95
|
+
// written as a one-member allOf — common in real specs) is
|
|
96
|
+
// self-referential, and eagerly resolving it would not terminate. The
|
|
97
|
+
// ref resolves at use time like every other ref. This mirrors the
|
|
98
|
+
// single-member oneOf/anyOf handling below.
|
|
99
|
+
const { allOf, ...value } = schema;
|
|
100
|
+
const members = allOf ?? [];
|
|
101
|
+
if (members.length === 1) {
|
|
102
|
+
const [member] = members;
|
|
103
|
+
if ((0, refFns_js_1.isRef)(member) && value.nullable) {
|
|
104
|
+
return (0, toRefV31_js_1.toRefV31)({ ref: member, refType: 'schema', nullable: true, stackTrail: st, context });
|
|
105
|
+
}
|
|
106
|
+
return (0, exports.toSchemaV3)({
|
|
107
|
+
schema: collapseSingleMember(value, member),
|
|
108
|
+
stackTrail: st,
|
|
109
|
+
context
|
|
110
|
+
});
|
|
111
|
+
}
|
|
83
112
|
const merged = (0, merge_intersection_js_1.mergeIntersection)({
|
|
84
113
|
schema,
|
|
85
114
|
getRef: (0, refFns_js_2.toGetRef)(context.documentObject)
|
|
@@ -190,8 +219,13 @@ const toSchemaV3 = ({ schema, stackTrail, context }) => {
|
|
|
190
219
|
}
|
|
191
220
|
// Otherwise cases
|
|
192
221
|
if (possibleObject(schema)) {
|
|
222
|
+
// 3.0 requires `type`, so its absence is a real (if benign) deviation —
|
|
223
|
+
// recorded at `debug` rather than `warning`: `properties` makes the
|
|
224
|
+
// intent unambiguous and inferring `object` is reliable, so it is noise
|
|
225
|
+
// in the default view but worth keeping in the record. (The v3-1 parser
|
|
226
|
+
// is silent here — type-less is valid in 3.1.)
|
|
193
227
|
context.logIssueNoKey({
|
|
194
|
-
level: '
|
|
228
|
+
level: 'debug',
|
|
195
229
|
message: 'Object has "properties" property, but is missing type="object" property',
|
|
196
230
|
parent: schema,
|
|
197
231
|
stackTrail,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-0/string/toString.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAQzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,wEAAwE;IACxE,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,kCAAkC;IAClC,UAAU,EAAE,UAAU,CAAA;IACtB,iEAAiE;IACjE,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,eAAO,MAAM,QAAQ,GAAI,gCAAgC,YAAY,KAAG,SAwDvE,CAAA;AAED,KAAK,kBAAkB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC9D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAA;IACjF,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,G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,CAAA;IACjF,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;IACnF,YAAY,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IACpF,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,wEAQlE,kBAAkB,CAAC,QAAQ,CAAC,KAAG,SAAS,CAAC,QAAQ,CAoDnD,CAAA"}
|
|
@@ -223,16 +223,9 @@ const toParsedString = ({ context, nullable, example, enums, defaultValue, value
|
|
|
223
223
|
stackTrail,
|
|
224
224
|
parentType: 'schema:string'
|
|
225
225
|
});
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
level: 'warning',
|
|
230
|
-
message: `Unexpected format: ${format}`,
|
|
231
|
-
parent: value,
|
|
232
|
-
stackTrail,
|
|
233
|
-
type: 'UNEXPECTED_FORMAT'
|
|
234
|
-
});
|
|
235
|
-
}
|
|
226
|
+
// `format` is an open vocabulary — custom string formats (e.g. `decimal`,
|
|
227
|
+
// `utc_datetime`) are spec-legal. The value is preserved on the OasString
|
|
228
|
+
// below, so an unrecognised format is passed through, not warned.
|
|
236
229
|
return context.withStackTrail(stackTrail, () => new String_js_1.OasString({
|
|
237
230
|
title,
|
|
238
231
|
description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decompose-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-1/_merge-all-of/decompose-union.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQ/D,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,YAAY,CAAA;IAC5B,UAAU,EAAE,CAAC,YAAY,GAAG,eAAe,CAAC,EAAE,CAAA;IAC9C,aAAa,EAAE,YAAY,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,cAAc,GAAI,uBAAuB,kBAAkB,KAAG,
|
|
1
|
+
{"version":3,"file":"decompose-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-1/_merge-all-of/decompose-union.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQ/D,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,YAAY,CAAA;IACpB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,YAAY,CAAA;IAC5B,UAAU,EAAE,CAAC,YAAY,GAAG,eAAe,CAAC,EAAE,CAAA;IAC9C,aAAa,EAAE,YAAY,CAAA;CAC5B,CAAA;AAGD,eAAO,MAAM,cAAc,GAAI,uBAAuB,kBAAkB,KAAG,oBA2C1E,CAAA"}
|
|
@@ -4,7 +4,6 @@ exports.decomposeUnion = void 0;
|
|
|
4
4
|
// Convert a schema object into an array of schemas that can be merged iteratively into a new schema
|
|
5
5
|
const decomposeUnion = ({ schema, groupType }) => {
|
|
6
6
|
if (!schema[groupType]) {
|
|
7
|
-
console.log('NO GROUP TYPE', JSON.stringify(schema, null, 2));
|
|
8
7
|
return {
|
|
9
8
|
beforeExcluded: {},
|
|
10
9
|
decomposed: [schema],
|
|
@@ -42,15 +41,13 @@ const decomposeUnion = ({ schema, groupType }) => {
|
|
|
42
41
|
return result;
|
|
43
42
|
};
|
|
44
43
|
exports.decomposeUnion = decomposeUnion;
|
|
45
|
-
//
|
|
46
|
-
// cross-product-merged into each member.
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
// for every member and collapses the union to an empty array. TypeScript
|
|
53
|
-
// can't model `not` anyway, so it rides the union wrapper, ignored.
|
|
44
|
+
// Union-level keys: kept on the union (via beforeExcluded/afterExcluded)
|
|
45
|
+
// rather than cross-product-merged into each member. Merging a metadata key
|
|
46
|
+
// *into* a member would resolve `$ref` members (to merge it in), losing their
|
|
47
|
+
// names — `toUnion` already captures these on the union itself.
|
|
48
|
+
// (`not` is deliberately NOT excluded here — it has no faithful TypeScript
|
|
49
|
+
// representation, so a schema using it is refused upstream in `toSchemaV3`
|
|
50
|
+
// rather than silently dropped from the union.)
|
|
54
51
|
const excludedProperties = [
|
|
55
52
|
'discriminator',
|
|
56
53
|
'default',
|
|
@@ -61,8 +58,7 @@ const excludedProperties = [
|
|
|
61
58
|
'examples',
|
|
62
59
|
'readOnly',
|
|
63
60
|
'writeOnly',
|
|
64
|
-
'deprecated'
|
|
65
|
-
'not'
|
|
61
|
+
'deprecated'
|
|
66
62
|
];
|
|
67
63
|
const exclude = (entries) => {
|
|
68
64
|
return entries.reduce((acc, [key, value]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-1/_merge-all-of/merge-union.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI3E,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,+BAA+B,cAAc,KAAG,iBAiC1E,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,sCAK/B,qBAAqB,KAAG,
|
|
1
|
+
{"version":3,"file":"merge-union.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-1/_merge-all-of/merge-union.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAI3E,KAAK,cAAc,GAAG;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,+BAA+B,cAAc,KAAG,iBAiC1E,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,QAAQ,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,OAAO,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,sCAK/B,qBAAqB,KAAG,YAyB1B,CAAA"}
|
|
@@ -46,14 +46,6 @@ const mergeCrossProduct = ({ first, second, getRef, groupType }) => {
|
|
|
46
46
|
}
|
|
47
47
|
})
|
|
48
48
|
.filter(item => item !== undefined);
|
|
49
|
-
// Defensive floor: when both groups are non-empty the cross product is
|
|
50
|
-
// non-empty, so an empty `mergedGroup` means every merge *failed* (an
|
|
51
|
-
// unmergeable constraint in `secondGroup`). Keep the un-merged `firstGroup`
|
|
52
|
-
// rather than collapsing to an empty union. A genuinely empty input union
|
|
53
|
-
// (`anyOf: []` → empty group) is left empty so `toSchemasV3` still throws.
|
|
54
|
-
if (mergedGroup.length === 0 && firstGroup.length > 0 && secondGroup.length > 0) {
|
|
55
|
-
return { [groupType]: firstGroup };
|
|
56
|
-
}
|
|
57
49
|
return {
|
|
58
50
|
[groupType]: mergedGroup.flatMap(item => {
|
|
59
51
|
if (!(0, refFns_js_1.isRef)(item) && Array.isArray(item[groupType])) {
|
|
@@ -133,9 +133,12 @@ const parseIntegerFormat = ({ format, context, parent, stackTrail }) => {
|
|
|
133
133
|
return undefined;
|
|
134
134
|
}
|
|
135
135
|
if (!v.is(integer_types_js_1.integerFormat, format)) {
|
|
136
|
+
// `format` is an open vocabulary; a value the IR's integerFormat can't
|
|
137
|
+
// hold is dropped. Recorded at `debug` — the dropped hint is
|
|
138
|
+
// informational, not a correctness issue.
|
|
136
139
|
context.logIssue({
|
|
137
140
|
key: 'format',
|
|
138
|
-
level: '
|
|
141
|
+
level: 'debug',
|
|
139
142
|
message: `Invalid format: ${format}`,
|
|
140
143
|
parent,
|
|
141
144
|
stackTrail,
|
|
@@ -132,9 +132,12 @@ const parseNumberFormat = ({ format, context, parent, stackTrail }) => {
|
|
|
132
132
|
return undefined;
|
|
133
133
|
}
|
|
134
134
|
if (!v.is(number_types_js_1.numberFormat, format)) {
|
|
135
|
+
// `format` is an open vocabulary; a value the IR's numberFormat can't
|
|
136
|
+
// hold (e.g. `decimal`) is dropped. Recorded at `debug` — the dropped
|
|
137
|
+
// hint is informational, not a correctness issue.
|
|
135
138
|
context.logIssue({
|
|
136
139
|
key: 'format',
|
|
137
|
-
level: '
|
|
140
|
+
level: 'debug',
|
|
138
141
|
message: `Invalid format: ${format}`,
|
|
139
142
|
parent,
|
|
140
143
|
stackTrail,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOperationsV3.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-1/operation/toOperationsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAItE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAOpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAOD,eAAO,MAAM,aAAa,GAAI,mDAK3B,iBAAiB,KAAG,
|
|
1
|
+
{"version":3,"file":"toOperationsV3.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-1/operation/toOperationsV3.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAItE,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAOpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,SAAS,CAAC,eAAe,CAAA;IACpC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAOD,eAAO,MAAM,aAAa,GAAI,mDAK3B,iBAAiB,KAAG,YAuEtB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAG/B,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG,SAAS,CAAA;IACxC,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,gCAI5B,kBAAkB,KAAG,YAAY,EAiFnC,CAAA"}
|
|
@@ -14,7 +14,11 @@ const toExternalDocs_js_1 = require("../externalDocs/toExternalDocs.js");
|
|
|
14
14
|
const toServerV3_js_1 = require("../server/toServerV3.js");
|
|
15
15
|
const toOperationV3 = ({ operation, operationInfo, stackTrail, context }) => {
|
|
16
16
|
const { method, path, pathItem } = operationInfo;
|
|
17
|
-
const { operationId, tags, summary, description, parameters, requestBody, responses, deprecated, security, externalDocs, servers,
|
|
17
|
+
const { operationId, tags, summary, description, parameters, requestBody, responses, deprecated, security, externalDocs, servers,
|
|
18
|
+
// Callbacks are a deliberate non-goal (no out-of-band callback codegen).
|
|
19
|
+
// Pull it out so it is dropped silently instead of warned as an
|
|
20
|
+
// unexpected property on every operation that declares one.
|
|
21
|
+
callbacks: _callbacks, ...skipped } = operation;
|
|
18
22
|
const extensionFields = (0, toSpecificationExtensionsV3_js_1.toSpecificationExtensionsV3)({
|
|
19
23
|
skipped,
|
|
20
24
|
parent: operation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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AS,CAAC,YAAY,CAAA;IAC1D,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAuPD,eAAO,MAAM,UAAU,GAAI,iCAIxB,cAAc,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CA6Q9C,CAAA;AA+CD,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,YAAY,GAAG,SAAS,CAAA;IACtE,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,iCAIhC,sBAAsB,KAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,SAM1D,CAAA"}
|
|
@@ -244,12 +244,41 @@ const toSchemaV3 = ({ schema, stackTrail, context }) => {
|
|
|
244
244
|
if ((0, refFns_js_1.isRef)(schema)) {
|
|
245
245
|
return (0, toRefV31_js_1.toRefV31)({ ref: schema, refType: 'schema', stackTrail, context });
|
|
246
246
|
}
|
|
247
|
+
// OpenAPI `not` has no faithful TypeScript representation: a generated type
|
|
248
|
+
// that ignored it would *widen* the contract (accepting shapes the schema
|
|
249
|
+
// forbids). Refuse the schema rather than emit a type that lies. The throw
|
|
250
|
+
// is isolated by `tryParseAt` into an `INVALID_SCHEMA` issue, and consumers
|
|
251
|
+
// of this schema are pruned via `removeErroredItems` (INVALID_DEPENDENCY_REF).
|
|
252
|
+
if ('not' in schema) {
|
|
253
|
+
throw new Error('Schema uses unsupported "not" keyword');
|
|
254
|
+
}
|
|
247
255
|
const normalized = normalizeSchemaShape(schema);
|
|
248
256
|
if (normalized !== schema) {
|
|
249
257
|
return (0, exports.toSchemaV3)({ schema: normalized, stackTrail, context });
|
|
250
258
|
}
|
|
251
259
|
if ('allOf' in schema && Array.isArray(schema.allOf)) {
|
|
252
260
|
return stackTrail.trace('allOf', st => {
|
|
261
|
+
// A single-member allOf collapses to its sole member — the value must
|
|
262
|
+
// satisfy exactly that one schema. When the member is a `$ref`, keep it
|
|
263
|
+
// LAZY (as an OasRef) rather than resolving + merging its target: a
|
|
264
|
+
// `{ allOf: [{$ref: self}], nullable: true }` (a nullable reference
|
|
265
|
+
// written as a one-member allOf — common in real specs) is
|
|
266
|
+
// self-referential, and eagerly resolving it would not terminate. The
|
|
267
|
+
// ref resolves at use time like every other ref. Mirrors the
|
|
268
|
+
// single-member oneOf/anyOf handling below.
|
|
269
|
+
const { allOf, ...value } = schema;
|
|
270
|
+
const members = allOf ?? [];
|
|
271
|
+
if (members.length === 1) {
|
|
272
|
+
const [member] = members;
|
|
273
|
+
if ((0, refFns_js_1.isRef)(member) && value.nullable) {
|
|
274
|
+
return (0, toRefV31_js_1.toRefV31)({ ref: member, refType: 'schema', nullable: true, stackTrail: st, context });
|
|
275
|
+
}
|
|
276
|
+
return (0, exports.toSchemaV3)({
|
|
277
|
+
schema: collapseSingleMember(value, member),
|
|
278
|
+
stackTrail: st,
|
|
279
|
+
context
|
|
280
|
+
});
|
|
281
|
+
}
|
|
253
282
|
const merged = (0, merge_intersection_js_1.mergeIntersection)({
|
|
254
283
|
schema,
|
|
255
284
|
getRef: (0, refFns_js_2.toGetRef)(context.documentObject)
|
|
@@ -372,13 +401,11 @@ const toSchemaV3 = ({ schema, stackTrail, context }) => {
|
|
|
372
401
|
}
|
|
373
402
|
// Otherwise cases
|
|
374
403
|
if (possibleObject(schema)) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
type: 'MISSING_OBJECT_TYPE'
|
|
381
|
-
});
|
|
404
|
+
// In 3.1 `type` is optional, so a schema with `properties` and no `type`
|
|
405
|
+
// is a normal, valid object schema — inferring `object` is the expected
|
|
406
|
+
// reading, not a deviation, so it is silent. (The v3-0 parser keeps the
|
|
407
|
+
// MISSING_OBJECT_TYPE warning: 3.0 requires `type`, so its absence there
|
|
408
|
+
// is a real signal.)
|
|
382
409
|
return (0, toObject_js_1.toObject)({
|
|
383
410
|
value: {
|
|
384
411
|
...schema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toString.d.ts","sourceRoot":"","sources":["../../../../src/parse/v3-1/string/toString.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAQzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,wEAAwE;IACxE,KAAK,EAAE,SAAS,CAAC,YAAY,CAAA;IAC7B,kCAAkC;IAClC,UAAU,EAAE,UAAU,CAAA;IACtB,iEAAiE;IACjE,OAAO,EAAE,gBAAgB,CAAA;CAC1B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,eAAO,MAAM,QAAQ,GAAI,gCAAgC,YAAY,KAAG,SAwDvE,CAAA;AAED,KAAK,kBAAkB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IAAI;IAC9D,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC,CAAA;IACjF,OAAO,EAAE,gBAAgB,CAAA;IACzB,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;I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AQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IAC/E,KAAK,EAAE,QAAQ,SAAS,IAAI,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;IACnF,YAAY,EAAE,QAAQ,SAAS,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;IACpF,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,SAAS,OAAO,GAAG,SAAS,EAAE,wEAQlE,kBAAkB,CAAC,QAAQ,CAAC,KAAG,SAAS,CAAC,QAAQ,CAoDnD,CAAA"}
|
|
@@ -223,16 +223,9 @@ const toParsedString = ({ context, nullable, example, enums, defaultValue, value
|
|
|
223
223
|
stackTrail,
|
|
224
224
|
parentType: 'schema:string'
|
|
225
225
|
});
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
level: 'warning',
|
|
230
|
-
message: `Unexpected format: ${format}`,
|
|
231
|
-
parent: value,
|
|
232
|
-
stackTrail,
|
|
233
|
-
type: 'UNEXPECTED_FORMAT'
|
|
234
|
-
});
|
|
235
|
-
}
|
|
226
|
+
// `format` is an open vocabulary — custom string formats (e.g. `decimal`,
|
|
227
|
+
// `utc_datetime`) are spec-legal. The value is preserved on the OasString
|
|
228
|
+
// below, so an unrecognised format is passed through, not warned.
|
|
236
229
|
return context.withStackTrail(stackTrail, () => new String_js_1.OasString({
|
|
237
230
|
title,
|
|
238
231
|
description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../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