@skmtc/core 0.48.0 → 0.49.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/CoreContext.d.ts +1 -1
- package/esm/context/CoreContext.js +6 -2
- package/esm/context/GenerateContext.d.ts +1 -1
- package/esm/context/GenerateContext.js +1 -1
- package/esm/context/ParseContext.d.ts +4 -4
- package/esm/context/ParseContext.js +6 -6
- package/esm/context/generateTypes.d.ts +4 -4
- package/esm/context/tryParseAt.d.ts +1 -1
- package/esm/context/tryParseAt.js +1 -1
- package/esm/enrichments/EnrichmentAudit.d.ts +1 -1
- package/esm/enrichments/EnrichmentWarning.d.ts +1 -1
- package/esm/enrichments/findUnknownKeys.d.ts +1 -1
- package/esm/enrichments/findUnknownKeys.js +1 -1
- package/esm/enrichments/parseEnrichmentUmbrella.d.ts +1 -1
- package/esm/enrichments/parseEnrichmentUmbrella.js +1 -1
- package/esm/enrichments/parseEnrichmentValue.d.ts +2 -2
- package/esm/enrichments/parseEnrichmentValue.js +2 -2
- package/esm/enrichments/readEnrichments.d.ts +4 -4
- package/esm/enrichments/readEnrichments.js +4 -4
- package/esm/enrichments/validateConfig.d.ts +1 -1
- package/esm/helpers/ResultsLog.js +7 -1
- package/esm/helpers/applyGeneratedSuffix.d.ts +1 -1
- package/esm/helpers/applyGeneratedSuffix.js +1 -1
- package/esm/helpers/normalizeWorkspacePath.d.ts +1 -1
- package/esm/helpers/normalizeWorkspacePath.js +1 -1
- package/esm/helpers/refFns.js +11 -0
- package/esm/oas/array/Array.d.ts +2 -2
- package/esm/oas/array/Array.js +2 -2
- package/esm/oas/boolean/Boolean.d.ts +2 -2
- package/esm/oas/boolean/Boolean.js +2 -2
- package/esm/oas/integer/Integer.d.ts +2 -2
- package/esm/oas/integer/Integer.js +2 -2
- package/esm/oas/intersection/Intersection.d.ts +3 -3
- package/esm/oas/intersection/Intersection.js +3 -3
- package/esm/oas/number/Number.d.ts +2 -2
- package/esm/oas/number/Number.js +2 -2
- package/esm/oas/object/Object.d.ts +2 -2
- package/esm/oas/object/Object.js +2 -2
- package/esm/oas/operation/Operation.d.ts +1 -1
- package/esm/oas/operation/Operation.js +1 -1
- package/esm/oas/operation/toEffectiveParameters.d.ts +2 -2
- package/esm/oas/operation/toEffectiveParameters.js +2 -2
- package/esm/oas/ref/DanglingRefError.d.ts +1 -1
- package/esm/oas/ref/DanglingRefError.js +1 -1
- package/esm/oas/ref/Ref.d.ts +2 -2
- package/esm/oas/ref/Ref.js +2 -2
- package/esm/oas/string/String.d.ts +2 -2
- package/esm/oas/string/String.js +2 -2
- package/esm/oas/union/Union.d.ts +3 -3
- package/esm/oas/union/Union.js +3 -3
- package/esm/oas/unknown/Unknown.d.ts +2 -2
- package/esm/oas/unknown/Unknown.js +2 -2
- package/esm/parse/allOfSystem.d.ts +4 -4
- package/esm/parse/allOfSystem.js +2 -2
- package/esm/parse/anyOfSystem.d.ts +5 -5
- package/esm/parse/anyOfSystem.js +4 -4
- package/esm/parse/keptRefs.d.ts +2 -2
- package/esm/parse/toCyclicRefs.js +27 -16
- package/esm/parse/v3-0/_merge-all-of/merge-union.d.ts +1 -1
- package/esm/parse/v3-0/_merge-all-of/merge-union.js +3 -3
- package/esm/parse/v3-0/_merge-all-of/merge.js +2 -2
- package/esm/parse/v3-0/_merge-all-of/types.d.ts +4 -4
- package/esm/parse/v3-0/ref/toRefV31.js +1 -1
- package/esm/parse/v3-0/schema/toSchemasV3.js +3 -3
- package/esm/parse/v3-1/_merge-all-of/merge-union.d.ts +1 -1
- package/esm/parse/v3-1/_merge-all-of/merge-union.js +3 -3
- package/esm/parse/v3-1/_merge-all-of/merge.js +2 -2
- package/esm/parse/v3-1/_merge-all-of/types.d.ts +4 -4
- package/esm/parse/v3-1/ref/toRefV31.js +1 -1
- package/esm/parse/v3-1/schema/toSchemasV3.js +3 -3
- package/esm/parse/v3-2/_merge-all-of/merge-union.d.ts +1 -1
- package/esm/parse/v3-2/_merge-all-of/merge-union.js +3 -3
- package/esm/parse/v3-2/_merge-all-of/merge.js +2 -2
- package/esm/parse/v3-2/_merge-all-of/types.d.ts +4 -4
- package/esm/parse/v3-2/ref/toRefV31.js +1 -1
- package/esm/parse/v3-2/schema/toSchemasV3.js +3 -3
- package/esm/run/toEnrichmentDefaults.d.ts +1 -1
- package/esm/run/toEnrichmentDefaults.js +1 -1
- package/esm/types/EnrichmentDefaults.d.ts +1 -1
- package/esm/types/EnrichmentDefaults.js +1 -1
- package/esm/types/Enrichments.d.ts +1 -1
- package/esm/types/JsonPointer.js +2 -2
- package/esm/types/Manifest.d.ts +1 -1
- package/esm/types/ModuleSelect.d.ts +1 -1
- package/esm/types/Settings.d.ts +29 -11
- package/esm/types/Settings.js +13 -6
- package/esm/types/Variant.d.ts +3 -3
- package/esm/types/Variant.js +3 -3
- package/package.json +1 -1
- package/script/context/CoreContext.d.ts +1 -1
- package/script/context/CoreContext.js +6 -2
- package/script/context/GenerateContext.d.ts +1 -1
- package/script/context/GenerateContext.js +1 -1
- package/script/context/ParseContext.d.ts +4 -4
- package/script/context/ParseContext.js +6 -6
- package/script/context/generateTypes.d.ts +4 -4
- package/script/context/tryParseAt.d.ts +1 -1
- package/script/context/tryParseAt.js +1 -1
- package/script/enrichments/EnrichmentAudit.d.ts +1 -1
- package/script/enrichments/EnrichmentWarning.d.ts +1 -1
- package/script/enrichments/findUnknownKeys.d.ts +1 -1
- package/script/enrichments/findUnknownKeys.js +1 -1
- package/script/enrichments/parseEnrichmentUmbrella.d.ts +1 -1
- package/script/enrichments/parseEnrichmentUmbrella.js +1 -1
- package/script/enrichments/parseEnrichmentValue.d.ts +2 -2
- package/script/enrichments/parseEnrichmentValue.js +2 -2
- package/script/enrichments/readEnrichments.d.ts +4 -4
- package/script/enrichments/readEnrichments.js +4 -4
- package/script/enrichments/validateConfig.d.ts +1 -1
- package/script/helpers/ResultsLog.js +7 -1
- package/script/helpers/applyGeneratedSuffix.d.ts +1 -1
- package/script/helpers/applyGeneratedSuffix.js +1 -1
- package/script/helpers/normalizeWorkspacePath.d.ts +1 -1
- package/script/helpers/normalizeWorkspacePath.js +1 -1
- package/script/helpers/refFns.js +11 -0
- package/script/oas/array/Array.d.ts +2 -2
- package/script/oas/array/Array.js +2 -2
- package/script/oas/boolean/Boolean.d.ts +2 -2
- package/script/oas/boolean/Boolean.js +2 -2
- package/script/oas/integer/Integer.d.ts +2 -2
- package/script/oas/integer/Integer.js +2 -2
- package/script/oas/intersection/Intersection.d.ts +3 -3
- package/script/oas/intersection/Intersection.js +3 -3
- package/script/oas/number/Number.d.ts +2 -2
- package/script/oas/number/Number.js +2 -2
- package/script/oas/object/Object.d.ts +2 -2
- package/script/oas/object/Object.js +2 -2
- package/script/oas/operation/Operation.d.ts +1 -1
- package/script/oas/operation/Operation.js +1 -1
- package/script/oas/operation/toEffectiveParameters.d.ts +2 -2
- package/script/oas/operation/toEffectiveParameters.js +2 -2
- package/script/oas/ref/DanglingRefError.d.ts +1 -1
- package/script/oas/ref/DanglingRefError.js +1 -1
- package/script/oas/ref/Ref.d.ts +2 -2
- package/script/oas/ref/Ref.js +2 -2
- package/script/oas/string/String.d.ts +2 -2
- package/script/oas/string/String.js +2 -2
- package/script/oas/union/Union.d.ts +3 -3
- package/script/oas/union/Union.js +3 -3
- package/script/oas/unknown/Unknown.d.ts +2 -2
- package/script/oas/unknown/Unknown.js +2 -2
- package/script/parse/allOfSystem.d.ts +4 -4
- package/script/parse/allOfSystem.js +2 -2
- package/script/parse/anyOfSystem.d.ts +5 -5
- package/script/parse/anyOfSystem.js +4 -4
- package/script/parse/keptRefs.d.ts +2 -2
- package/script/parse/toCyclicRefs.js +27 -16
- package/script/parse/v3-0/_merge-all-of/merge-union.d.ts +1 -1
- package/script/parse/v3-0/_merge-all-of/merge-union.js +3 -3
- package/script/parse/v3-0/_merge-all-of/merge.js +2 -2
- package/script/parse/v3-0/_merge-all-of/types.d.ts +4 -4
- package/script/parse/v3-0/ref/toRefV31.js +1 -1
- package/script/parse/v3-0/schema/toSchemasV3.js +3 -3
- package/script/parse/v3-1/_merge-all-of/merge-union.d.ts +1 -1
- package/script/parse/v3-1/_merge-all-of/merge-union.js +3 -3
- package/script/parse/v3-1/_merge-all-of/merge.js +2 -2
- package/script/parse/v3-1/_merge-all-of/types.d.ts +4 -4
- package/script/parse/v3-1/ref/toRefV31.js +1 -1
- package/script/parse/v3-1/schema/toSchemasV3.js +3 -3
- package/script/parse/v3-2/_merge-all-of/merge-union.d.ts +1 -1
- package/script/parse/v3-2/_merge-all-of/merge-union.js +3 -3
- package/script/parse/v3-2/_merge-all-of/merge.js +2 -2
- package/script/parse/v3-2/_merge-all-of/types.d.ts +4 -4
- package/script/parse/v3-2/ref/toRefV31.js +1 -1
- package/script/parse/v3-2/schema/toSchemasV3.js +3 -3
- package/script/run/toEnrichmentDefaults.d.ts +1 -1
- package/script/run/toEnrichmentDefaults.js +1 -1
- package/script/types/EnrichmentDefaults.d.ts +1 -1
- package/script/types/EnrichmentDefaults.js +1 -1
- package/script/types/Enrichments.d.ts +1 -1
- package/script/types/JsonPointer.js +2 -2
- package/script/types/Manifest.d.ts +1 -1
- package/script/types/ModuleSelect.d.ts +1 -1
- package/script/types/Settings.d.ts +29 -11
- package/script/types/Settings.js +14 -7
- package/script/types/Variant.d.ts +3 -3
- package/script/types/Variant.js +3 -3
|
@@ -63,7 +63,7 @@ export type TryParseAtArgs<T> = {
|
|
|
63
63
|
* given `type` and the thrown value as `cause`. A `DanglingRefError`
|
|
64
64
|
* is logged as `DANGLING_REF`: core resolved a ref while it parsed (one
|
|
65
65
|
* it merges, in an `allOf` or a `oneOf` or `anyOf` member, when
|
|
66
|
-
* `
|
|
66
|
+
* `parse.danglingRefs` does not list `allOfMember`)
|
|
67
67
|
* - registers a ref error if `refKey` is provided
|
|
68
68
|
* - returns `undefined`
|
|
69
69
|
*
|
|
@@ -30,7 +30,7 @@ const DanglingRefError_js_1 = require("../oas/ref/DanglingRefError.js");
|
|
|
30
30
|
* given `type` and the thrown value as `cause`. A `DanglingRefError`
|
|
31
31
|
* is logged as `DANGLING_REF`: core resolved a ref while it parsed (one
|
|
32
32
|
* it merges, in an `allOf` or a `oneOf` or `anyOf` member, when
|
|
33
|
-
* `
|
|
33
|
+
* `parse.danglingRefs` does not list `allOfMember`)
|
|
34
34
|
* - registers a ref error if `refKey` is provided
|
|
35
35
|
* - returns `undefined`
|
|
36
36
|
*
|
|
@@ -37,7 +37,7 @@ export type AuditGenerator = {
|
|
|
37
37
|
readonly type: 'oasOperation' | 'gqlOperation' | 'model' | 'webhook';
|
|
38
38
|
};
|
|
39
39
|
type FinalizeArgs = {
|
|
40
|
-
/** The consumer's `
|
|
40
|
+
/** The consumer's `skmtc.config.json#settings.enrichments` record. */
|
|
41
41
|
enrichments: GeneratorEnrichments | undefined;
|
|
42
42
|
/** The generators configured for this run. */
|
|
43
43
|
generators: readonly AuditGenerator[];
|
|
@@ -48,7 +48,7 @@ export type EnrichmentWarningType = 'UNCONSUMED_ENRICHMENT' | 'UNKNOWN_GENERATOR
|
|
|
48
48
|
export declare const enrichmentWarningType: v.GenericSchema<EnrichmentWarningType>;
|
|
49
49
|
/**
|
|
50
50
|
* One enrichment-config warning. `path` is the routing key sequence under
|
|
51
|
-
* `
|
|
51
|
+
* `skmtc.config.json#settings.enrichments` locating the offending entry —
|
|
52
52
|
* `[generatorId, ...subjectSegments]` for addressing warnings, extended
|
|
53
53
|
* down to the leaf key for `UNKNOWN_ENRICHMENT_KEY`. `suggestion` carries
|
|
54
54
|
* the nearest known key when a close match exists (`submitLabl` →
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* gives correct "did you mean …?" suggestions — the intended key is in
|
|
14
14
|
* the schema's entries even when it is optional and absent from the
|
|
15
15
|
* parsed value. This is deliberately a warning layer, not
|
|
16
|
-
* `v.strictObject`: a shared
|
|
16
|
+
* `v.strictObject`: a shared skmtc.config.json paired with an older generator
|
|
17
17
|
* version stays survivable under version skew instead of hard-failing.
|
|
18
18
|
*
|
|
19
19
|
* The walk is fail-open: unions, intersections, loose objects, and any
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* gives correct "did you mean …?" suggestions — the intended key is in
|
|
15
15
|
* the schema's entries even when it is optional and absent from the
|
|
16
16
|
* parsed value. This is deliberately a warning layer, not
|
|
17
|
-
* `v.strictObject`: a shared
|
|
17
|
+
* `v.strictObject`: a shared skmtc.config.json paired with an older generator
|
|
18
18
|
* version stays survivable under version skew instead of hard-failing.
|
|
19
19
|
*
|
|
20
20
|
* The walk is fail-open: unions, intersections, loose objects, and any
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* expected, not typos.
|
|
20
20
|
*
|
|
21
21
|
* A wrong-typed value throws ({@link parseEnrichmentValue}), naming each
|
|
22
|
-
* wrong value's place in `
|
|
22
|
+
* wrong value's place in `skmtc.config.json`. Unknown-key detection runs first,
|
|
23
23
|
* so a throwing leaf doesn't hide a dropped key.
|
|
24
24
|
*
|
|
25
25
|
* @module parseEnrichmentUmbrella
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* expected, not typos.
|
|
21
21
|
*
|
|
22
22
|
* A wrong-typed value throws ({@link parseEnrichmentValue}), naming each
|
|
23
|
-
* wrong value's place in `
|
|
23
|
+
* wrong value's place in `skmtc.config.json`. Unknown-key detection runs first,
|
|
24
24
|
* so a throwing leaf doesn't hide a dropped key.
|
|
25
25
|
*
|
|
26
26
|
* @module parseEnrichmentUmbrella
|
|
@@ -4,14 +4,14 @@ type ParseEnrichmentValueArgs<EnrichmentType> = {
|
|
|
4
4
|
value: unknown;
|
|
5
5
|
/** The generator whose schema reads `value`; `undefined` for the shared `_stack` bag. */
|
|
6
6
|
generatorId: string | undefined;
|
|
7
|
-
/** The `
|
|
7
|
+
/** The `skmtc.config.json#settings.enrichments` routing path of the value at `path` inside `value`. */
|
|
8
8
|
toRoutingPath: (path: readonly string[]) => string[];
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* `value` parsed through a generator's enrichment schema. Enrichments are
|
|
12
12
|
* typed configuration, so a value that does not match throws, and the run
|
|
13
13
|
* fails. The message lists every value that does not match, at its place in
|
|
14
|
-
* `
|
|
14
|
+
* `skmtc.config.json`, so the user can fix them all in one pass.
|
|
15
15
|
*/
|
|
16
16
|
export declare const parseEnrichmentValue: <EnrichmentType>({ schema, value, generatorId, toRoutingPath }: ParseEnrichmentValueArgs<EnrichmentType>) => EnrichmentType;
|
|
17
17
|
export {};
|
|
@@ -40,7 +40,7 @@ const EnrichmentWarning_js_1 = require("./EnrichmentWarning.js");
|
|
|
40
40
|
* `value` parsed through a generator's enrichment schema. Enrichments are
|
|
41
41
|
* typed configuration, so a value that does not match throws, and the run
|
|
42
42
|
* fails. The message lists every value that does not match, at its place in
|
|
43
|
-
* `
|
|
43
|
+
* `skmtc.config.json`, so the user can fix them all in one pass.
|
|
44
44
|
*/
|
|
45
45
|
const parseEnrichmentValue = ({ schema, value, generatorId, toRoutingPath }) => {
|
|
46
46
|
const result = v.safeParse(schema, value);
|
|
@@ -55,7 +55,7 @@ const parseEnrichmentValue = ({ schema, value, generatorId, toRoutingPath }) =>
|
|
|
55
55
|
const header = generatorId === undefined
|
|
56
56
|
? 'Stack enrichments do not match the schema a generator reads them with.'
|
|
57
57
|
: `Enrichments for '${generatorId}' do not match its enrichment schema.`;
|
|
58
|
-
throw new Error([`${header} Fix them in
|
|
58
|
+
throw new Error([`${header} Fix them in skmtc.config.json (settings.enrichments):`, ...lines].join('\n'));
|
|
59
59
|
};
|
|
60
60
|
exports.parseEnrichmentValue = parseEnrichmentValue;
|
|
61
61
|
/** What to do about one value: a scope the generator does not read takes no value at all. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Typed readers for the run-constant enrichment scopes.
|
|
3
3
|
*
|
|
4
4
|
* Three enrichment scopes share one storage namespace
|
|
5
|
-
* (`
|
|
5
|
+
* (`skmtc.config.json#settings.enrichments`), distinguished only by where they
|
|
6
6
|
* sit and how often they vary:
|
|
7
7
|
*
|
|
8
8
|
* - **subject** — `[id][subject][variant]`, resolved *per item* by the
|
|
@@ -36,7 +36,7 @@ type EnrichmentReadContext = {
|
|
|
36
36
|
/**
|
|
37
37
|
* Read this generator's **generator-scoped** enrichment — the
|
|
38
38
|
* run-constant leaf at
|
|
39
|
-
* `
|
|
39
|
+
* `skmtc.config.json#settings.enrichments[generatorId]._generator`, validated
|
|
40
40
|
* through the generator's own schema (typically declared as
|
|
41
41
|
* `toGeneratorEnrichmentSchema` on its entry, and reused here).
|
|
42
42
|
*
|
|
@@ -47,13 +47,13 @@ type EnrichmentReadContext = {
|
|
|
47
47
|
* config passes `v.optional(v.object({...}))`.
|
|
48
48
|
*
|
|
49
49
|
* @throws on a malformed block, naming each wrong value's place in
|
|
50
|
-
* `
|
|
50
|
+
* `skmtc.config.json`. The item is recorded as `error`, and the run fails once
|
|
51
51
|
* every generator has run, exactly as for a bad subject leaf.
|
|
52
52
|
*/
|
|
53
53
|
export declare const toGeneratorEnrichment: <EnrichmentType>(context: EnrichmentReadContext, generatorId: string, schema: v.GenericSchema<EnrichmentType>) => EnrichmentType;
|
|
54
54
|
/**
|
|
55
55
|
* Read the **stack-scoped** enrichment — the run-constant leaf at
|
|
56
|
-
* `
|
|
56
|
+
* `skmtc.config.json#settings.enrichments._stack`, validated through the
|
|
57
57
|
* caller's schema.
|
|
58
58
|
*
|
|
59
59
|
* The stack leaf is a single bag shared by every generator in the
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @fileoverview Typed readers for the run-constant enrichment scopes.
|
|
4
4
|
*
|
|
5
5
|
* Three enrichment scopes share one storage namespace
|
|
6
|
-
* (`
|
|
6
|
+
* (`skmtc.config.json#settings.enrichments`), distinguished only by where they
|
|
7
7
|
* sit and how often they vary:
|
|
8
8
|
*
|
|
9
9
|
* - **subject** — `[id][subject][variant]`, resolved *per item* by the
|
|
@@ -31,7 +31,7 @@ const parseEnrichmentValue_js_1 = require("./parseEnrichmentValue.js");
|
|
|
31
31
|
/**
|
|
32
32
|
* Read this generator's **generator-scoped** enrichment — the
|
|
33
33
|
* run-constant leaf at
|
|
34
|
-
* `
|
|
34
|
+
* `skmtc.config.json#settings.enrichments[generatorId]._generator`, validated
|
|
35
35
|
* through the generator's own schema (typically declared as
|
|
36
36
|
* `toGeneratorEnrichmentSchema` on its entry, and reused here).
|
|
37
37
|
*
|
|
@@ -42,7 +42,7 @@ const parseEnrichmentValue_js_1 = require("./parseEnrichmentValue.js");
|
|
|
42
42
|
* config passes `v.optional(v.object({...}))`.
|
|
43
43
|
*
|
|
44
44
|
* @throws on a malformed block, naming each wrong value's place in
|
|
45
|
-
* `
|
|
45
|
+
* `skmtc.config.json`. The item is recorded as `error`, and the run fails once
|
|
46
46
|
* every generator has run, exactly as for a bad subject leaf.
|
|
47
47
|
*/
|
|
48
48
|
const toGeneratorEnrichment = (context, generatorId, schema) => (0, parseEnrichmentValue_js_1.parseEnrichmentValue)({
|
|
@@ -54,7 +54,7 @@ const toGeneratorEnrichment = (context, generatorId, schema) => (0, parseEnrichm
|
|
|
54
54
|
exports.toGeneratorEnrichment = toGeneratorEnrichment;
|
|
55
55
|
/**
|
|
56
56
|
* Read the **stack-scoped** enrichment — the run-constant leaf at
|
|
57
|
-
* `
|
|
57
|
+
* `skmtc.config.json#settings.enrichments._stack`, validated through the
|
|
58
58
|
* caller's schema.
|
|
59
59
|
*
|
|
60
60
|
* The stack leaf is a single bag shared by every generator in the
|
|
@@ -9,7 +9,7 @@ export type EnrichmentValidationScope = 'subject' | 'generator' | 'stack';
|
|
|
9
9
|
* One enrichment value that fails its generator's Valibot enrichment
|
|
10
10
|
* schema — the authoritative validation verdict. Produced by
|
|
11
11
|
* {@link validateConfig}; the routing fields locate the offending leaf in
|
|
12
|
-
* `
|
|
12
|
+
* `skmtc.config.json#settings.enrichments`:
|
|
13
13
|
*
|
|
14
14
|
* - **operation subject** — `subject` = path, `method` = HTTP method
|
|
15
15
|
* - **model subject** — `subject` = refName (no `method`)
|
|
@@ -92,7 +92,13 @@ _ResultsLog_results = new WeakMap(), _ResultsLog_instances = new WeakSet(), _Res
|
|
|
92
92
|
};
|
|
93
93
|
/** Writes an own, enumerable property, even for keys such as `__proto__`. */
|
|
94
94
|
const defineOwn = (node, key, value) => {
|
|
95
|
-
|
|
95
|
+
// An assignment to `__proto__` would set the prototype, so that key is defined.
|
|
96
|
+
if (key === '__proto__') {
|
|
97
|
+
Object.defineProperty(node, key, { value, enumerable: true, writable: true, configurable: true });
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
node[key] = value;
|
|
101
|
+
}
|
|
96
102
|
};
|
|
97
103
|
/**
|
|
98
104
|
* Severity of each result type. A higher number replaces a lower one
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* engine when a projection's `toExportPath` result is stored into
|
|
4
4
|
* `ContentSettings` (see `GenerateContext.to*ContentSettings`).
|
|
5
5
|
* Consumers override it per project via
|
|
6
|
-
* `
|
|
6
|
+
* `skmtc.config.json#settings.generatedSuffix`; setting it to `''` disables
|
|
7
7
|
* injection entirely.
|
|
8
8
|
*/
|
|
9
9
|
export declare const DEFAULT_GENERATED_SUFFIX = ".generated";
|
|
@@ -7,7 +7,7 @@ const extname_js_1 = require("../deps/jsr.io/@std/path/1.1.6/posix/extname.js");
|
|
|
7
7
|
* engine when a projection's `toExportPath` result is stored into
|
|
8
8
|
* `ContentSettings` (see `GenerateContext.to*ContentSettings`).
|
|
9
9
|
* Consumers override it per project via
|
|
10
|
-
* `
|
|
10
|
+
* `skmtc.config.json#settings.generatedSuffix`; setting it to `''` disables
|
|
11
11
|
* injection entirely.
|
|
12
12
|
*/
|
|
13
13
|
exports.DEFAULT_GENERATED_SUFFIX = '.generated';
|
|
@@ -27,7 +27,7 @@ export type NormalizeWorkspacePathOptions = {
|
|
|
27
27
|
export declare const hasParentSegment: (path: string) => boolean;
|
|
28
28
|
/**
|
|
29
29
|
* Whether a path is absolute on either host: a POSIX root, a Windows drive
|
|
30
|
-
* (`C:\`, `C:/`) or a UNC share. Checked on every host, so a
|
|
30
|
+
* (`C:\`, `C:/`) or a UNC share. Checked on every host, so a skmtc.config.json
|
|
31
31
|
* written on Windows is rejected the same way on Linux.
|
|
32
32
|
*/
|
|
33
33
|
export declare const isAbsolutePath: (path: string) => boolean;
|
|
@@ -15,7 +15,7 @@ const hasParentSegment = (path) => path.split(/[/\\]/).some(segment => segment =
|
|
|
15
15
|
exports.hasParentSegment = hasParentSegment;
|
|
16
16
|
/**
|
|
17
17
|
* Whether a path is absolute on either host: a POSIX root, a Windows drive
|
|
18
|
-
* (`C:\`, `C:/`) or a UNC share. Checked on every host, so a
|
|
18
|
+
* (`C:\`, `C:/`) or a UNC share. Checked on every host, so a skmtc.config.json
|
|
19
19
|
* written on Windows is rejected the same way on Linux.
|
|
20
20
|
*/
|
|
21
21
|
const isAbsolutePath = (path) => (0, is_absolute_js_1.isAbsolute)(path.replaceAll('\\', '/')) || (0, is_absolute_js_2.isAbsolute)(path);
|
package/script/helpers/refFns.js
CHANGED
|
@@ -78,6 +78,7 @@ const toRefPathSegments = (refPath) => {
|
|
|
78
78
|
return body === '' ? [] : body.split('/').map(JsonPointer_js_1.unescapeSegment);
|
|
79
79
|
};
|
|
80
80
|
exports.toRefPathSegments = toRefPathSegments;
|
|
81
|
+
const COMPONENTS_PATH = '#/components/';
|
|
81
82
|
/**
|
|
82
83
|
* The `components` bucket a `refPath` is, such as `schemas` for
|
|
83
84
|
* `#/components/schemas`, or `undefined` for any other path. A ref whose path
|
|
@@ -90,6 +91,13 @@ const toRefPathBucket = (refPath) => {
|
|
|
90
91
|
if ((0, exports.isRemoteRefPath)(refPath)) {
|
|
91
92
|
return undefined;
|
|
92
93
|
}
|
|
94
|
+
// The usual path, `#/components/<bucket>`, with nothing to split or unescape.
|
|
95
|
+
if (refPath.startsWith(COMPONENTS_PATH)) {
|
|
96
|
+
const bucket = refPath.slice(COMPONENTS_PATH.length);
|
|
97
|
+
if (!bucket.includes('/') && !bucket.includes('~')) {
|
|
98
|
+
return isBucket(bucket) ? bucket : undefined;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
93
101
|
const [first, bucket, ...rest] = (0, exports.toRefPathSegments)(refPath);
|
|
94
102
|
return first === 'components' && rest.length === 0 && isBucket(bucket) ? bucket : undefined;
|
|
95
103
|
};
|
|
@@ -169,6 +177,9 @@ const toRawRefTarget = (document, { refName, refPath }) => (0, exports.isRemoteR
|
|
|
169
177
|
}, document);
|
|
170
178
|
exports.toRawRefTarget = toRawRefTarget;
|
|
171
179
|
const toPercentDecoded = (segment) => {
|
|
180
|
+
if (!segment.includes('%')) {
|
|
181
|
+
return segment;
|
|
182
|
+
}
|
|
172
183
|
try {
|
|
173
184
|
return decodeURIComponent(segment);
|
|
174
185
|
}
|
|
@@ -111,8 +111,8 @@ export declare class OasArray<Nullable extends boolean | undefined = boolean | u
|
|
|
111
111
|
*/
|
|
112
112
|
deprecated: boolean | undefined;
|
|
113
113
|
/**
|
|
114
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
115
|
-
* `
|
|
114
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
115
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
116
116
|
* not read what. `undefined` otherwise.
|
|
117
117
|
*/
|
|
118
118
|
not: OasUnknown | undefined;
|
|
@@ -157,8 +157,8 @@ class OasArray extends OasBase_js_1.OasBase {
|
|
|
157
157
|
value: void 0
|
|
158
158
|
});
|
|
159
159
|
/**
|
|
160
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
161
|
-
* `
|
|
160
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
161
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
162
162
|
* not read what. `undefined` otherwise.
|
|
163
163
|
*/
|
|
164
164
|
Object.defineProperty(this, "not", {
|
|
@@ -84,8 +84,8 @@ export declare class OasBoolean<Nullable extends boolean | undefined = boolean |
|
|
|
84
84
|
* instance (via the {@link OasBase} base).
|
|
85
85
|
*/
|
|
86
86
|
/**
|
|
87
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
88
|
-
* `
|
|
87
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
88
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
89
89
|
* not read what. `undefined` otherwise.
|
|
90
90
|
*/
|
|
91
91
|
not: OasUnknown | undefined;
|
|
@@ -118,8 +118,8 @@ class OasBoolean extends OasBase_js_1.OasBase {
|
|
|
118
118
|
* instance (via the {@link OasBase} base).
|
|
119
119
|
*/
|
|
120
120
|
/**
|
|
121
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
122
|
-
* `
|
|
121
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
122
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
123
123
|
* not read what. `undefined` otherwise.
|
|
124
124
|
*/
|
|
125
125
|
Object.defineProperty(this, "not", {
|
|
@@ -118,8 +118,8 @@ export declare class OasInteger<Nullable extends boolean | undefined = boolean |
|
|
|
118
118
|
*/
|
|
119
119
|
deprecated: boolean | undefined;
|
|
120
120
|
/**
|
|
121
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
122
|
-
* `
|
|
121
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
122
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
123
123
|
* not read what. `undefined` otherwise.
|
|
124
124
|
*/
|
|
125
125
|
not: OasUnknown | undefined;
|
|
@@ -170,8 +170,8 @@ class OasInteger extends OasBase_js_1.OasBase {
|
|
|
170
170
|
value: void 0
|
|
171
171
|
});
|
|
172
172
|
/**
|
|
173
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
174
|
-
* `
|
|
173
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
174
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
175
175
|
* not read what. `undefined` otherwise.
|
|
176
176
|
*/
|
|
177
177
|
Object.defineProperty(this, "not", {
|
|
@@ -37,7 +37,7 @@ export type IntersectionFields = {
|
|
|
37
37
|
* An `allOf` that keeps at least one reference: a value matches every member.
|
|
38
38
|
*
|
|
39
39
|
* Core merges the members of an `allOf` into one schema. A reference that
|
|
40
|
-
* `
|
|
40
|
+
* `skmtc.config.json` `parse.intersections` keeps is not merged: the schema is an
|
|
41
41
|
* `OasIntersection` of the kept references, and at most one other member, which
|
|
42
42
|
* the other members of the `allOf` merge into. By default those are the
|
|
43
43
|
* references that close a cycle.
|
|
@@ -83,8 +83,8 @@ export declare class OasIntersection extends OasBase {
|
|
|
83
83
|
/** The default value. */
|
|
84
84
|
default?: unknown;
|
|
85
85
|
/**
|
|
86
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
87
|
-
* `
|
|
86
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
87
|
+
* `parse.not: unknown`. `undefined` otherwise.
|
|
88
88
|
*/
|
|
89
89
|
not: OasUnknown | undefined;
|
|
90
90
|
constructor(fields: IntersectionFields, context?: ParseContextType);
|
|
@@ -16,7 +16,7 @@ const DanglingRefError_js_1 = require("../ref/DanglingRefError.js");
|
|
|
16
16
|
* An `allOf` that keeps at least one reference: a value matches every member.
|
|
17
17
|
*
|
|
18
18
|
* Core merges the members of an `allOf` into one schema. A reference that
|
|
19
|
-
* `
|
|
19
|
+
* `skmtc.config.json` `parse.intersections` keeps is not merged: the schema is an
|
|
20
20
|
* `OasIntersection` of the kept references, and at most one other member, which
|
|
21
21
|
* the other members of the `allOf` merge into. By default those are the
|
|
22
22
|
* references that close a cycle.
|
|
@@ -129,8 +129,8 @@ class OasIntersection extends OasBase_js_1.OasBase {
|
|
|
129
129
|
value: void 0
|
|
130
130
|
});
|
|
131
131
|
/**
|
|
132
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
133
|
-
* `
|
|
132
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
133
|
+
* `parse.not: unknown`. `undefined` otherwise.
|
|
134
134
|
*/
|
|
135
135
|
Object.defineProperty(this, "not", {
|
|
136
136
|
enumerable: true,
|
|
@@ -118,8 +118,8 @@ export declare class OasNumber<Nullable extends boolean | undefined = boolean |
|
|
|
118
118
|
*/
|
|
119
119
|
deprecated: boolean | undefined;
|
|
120
120
|
/**
|
|
121
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
122
|
-
* `
|
|
121
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
122
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
123
123
|
* not read what. `undefined` otherwise.
|
|
124
124
|
*/
|
|
125
125
|
not: OasUnknown | undefined;
|
|
@@ -170,8 +170,8 @@ class OasNumber extends OasBase_js_1.OasBase {
|
|
|
170
170
|
value: void 0
|
|
171
171
|
});
|
|
172
172
|
/**
|
|
173
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
174
|
-
* `
|
|
173
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
174
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
175
175
|
* not read what. `undefined` otherwise.
|
|
176
176
|
*/
|
|
177
177
|
Object.defineProperty(this, "not", {
|
|
@@ -224,8 +224,8 @@ export declare class OasObject<Nullable extends boolean | undefined = boolean |
|
|
|
224
224
|
* ```
|
|
225
225
|
*/
|
|
226
226
|
/**
|
|
227
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
228
|
-
* `
|
|
227
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
228
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
229
229
|
* not read what. `undefined` otherwise.
|
|
230
230
|
*/
|
|
231
231
|
not: OasUnknown | undefined;
|
|
@@ -263,8 +263,8 @@ class OasObject extends OasBase_js_1.OasBase {
|
|
|
263
263
|
* ```
|
|
264
264
|
*/
|
|
265
265
|
/**
|
|
266
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
267
|
-
* `
|
|
266
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
267
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
268
268
|
* not read what. `undefined` otherwise.
|
|
269
269
|
*/
|
|
270
270
|
Object.defineProperty(this, "not", {
|
|
@@ -153,7 +153,7 @@ export declare class OasOperation extends OasBase {
|
|
|
153
153
|
* The path item's come first.
|
|
154
154
|
*
|
|
155
155
|
* References stay references, so a caller can resolve each one on its own.
|
|
156
|
-
* A reference that names nothing (kept when `
|
|
156
|
+
* A reference that names nothing (kept when `parse.danglingRefs` lists
|
|
157
157
|
* `parameter`) keeps its place, and resolving it throws `DanglingRefError`.
|
|
158
158
|
* {@link OasOperation.toParams} resolves them all.
|
|
159
159
|
*
|
|
@@ -229,7 +229,7 @@ class OasOperation extends OasBase_js_1.OasBase {
|
|
|
229
229
|
* The path item's come first.
|
|
230
230
|
*
|
|
231
231
|
* References stay references, so a caller can resolve each one on its own.
|
|
232
|
-
* A reference that names nothing (kept when `
|
|
232
|
+
* A reference that names nothing (kept when `parse.danglingRefs` lists
|
|
233
233
|
* `parameter`) keeps its place, and resolving it throws `DanglingRefError`.
|
|
234
234
|
* {@link OasOperation.toParams} resolves them all.
|
|
235
235
|
*
|
|
@@ -12,14 +12,14 @@ type ToEffectiveParametersArgs = {
|
|
|
12
12
|
* them: the path item's first, then its own. An own parameter with the same
|
|
13
13
|
* name and location replaces the path item's. References stay references.
|
|
14
14
|
*
|
|
15
|
-
* A reference that names nothing (kept when `
|
|
15
|
+
* A reference that names nothing (kept when `parse.danglingRefs` lists
|
|
16
16
|
* `parameter`) has no name or location. It keeps its place, and only the
|
|
17
17
|
* same `$ref` replaces it.
|
|
18
18
|
*/
|
|
19
19
|
export declare const toEffectiveParameters: ({ own, shared }: ToEffectiveParametersArgs) => Parameter[];
|
|
20
20
|
/**
|
|
21
21
|
* True for a parameter `$ref` that names nothing in the document, which the
|
|
22
|
-
* parser keeps when `
|
|
22
|
+
* parser keeps when `parse.danglingRefs` lists `parameter`.
|
|
23
23
|
*/
|
|
24
24
|
export declare const namesNothing: (parameter: Parameter) => boolean;
|
|
25
25
|
export {};
|
|
@@ -7,7 +7,7 @@ const DanglingRefError_js_1 = require("../ref/DanglingRefError.js");
|
|
|
7
7
|
* them: the path item's first, then its own. An own parameter with the same
|
|
8
8
|
* name and location replaces the path item's. References stay references.
|
|
9
9
|
*
|
|
10
|
-
* A reference that names nothing (kept when `
|
|
10
|
+
* A reference that names nothing (kept when `parse.danglingRefs` lists
|
|
11
11
|
* `parameter`) has no name or location. It keeps its place, and only the
|
|
12
12
|
* same `$ref` replaces it.
|
|
13
13
|
*/
|
|
@@ -18,7 +18,7 @@ const toEffectiveParameters = ({ own = [], shared = [] }) => {
|
|
|
18
18
|
exports.toEffectiveParameters = toEffectiveParameters;
|
|
19
19
|
/**
|
|
20
20
|
* True for a parameter `$ref` that names nothing in the document, which the
|
|
21
|
-
* parser keeps when `
|
|
21
|
+
* parser keeps when `parse.danglingRefs` lists `parameter`.
|
|
22
22
|
*/
|
|
23
23
|
const namesNothing = (parameter) => {
|
|
24
24
|
if (!parameter.isRef()) {
|
|
@@ -18,7 +18,7 @@ type DanglingRefErrorOptions = {
|
|
|
18
18
|
* component.
|
|
19
19
|
*
|
|
20
20
|
* By default the parser removes what holds such a reference, so a generator
|
|
21
|
-
* never meets one. When `
|
|
21
|
+
* never meets one. When `skmtc.config.json` `parse.danglingRefs` lists the
|
|
22
22
|
* reference's kind, it stays, and a generator that resolves it can catch
|
|
23
23
|
* this error and render something else in its place. Test for it with
|
|
24
24
|
* {@link DanglingRefError.is}, not `instanceof`.
|
|
@@ -10,7 +10,7 @@ require("../../_dnt.polyfills.js");
|
|
|
10
10
|
* component.
|
|
11
11
|
*
|
|
12
12
|
* By default the parser removes what holds such a reference, so a generator
|
|
13
|
-
* never meets one. When `
|
|
13
|
+
* never meets one. When `skmtc.config.json` `parse.danglingRefs` lists the
|
|
14
14
|
* reference's kind, it stays, and a generator that resolves it can catch
|
|
15
15
|
* this error and render something else in its place. Test for it with
|
|
16
16
|
* {@link DanglingRefError.is}, not `instanceof`.
|
package/script/oas/ref/Ref.d.ts
CHANGED
|
@@ -241,7 +241,7 @@ export declare class OasRef<T extends OasRefData['refType']> extends OasBase {
|
|
|
241
241
|
* @returns The resolved component
|
|
242
242
|
* @throws {DanglingRefError} when a reference on the chain names nothing,
|
|
243
243
|
* or the chain loops ({@link toLoop}), so it never reaches a component.
|
|
244
|
-
* The parser keeps either one only when `
|
|
244
|
+
* The parser keeps either one only when `parse.danglingRefs` lists its kind.
|
|
245
245
|
* @throws Error when a reference on the chain names a component of another
|
|
246
246
|
* kind (see {@link resolveOnce})
|
|
247
247
|
*/
|
|
@@ -264,7 +264,7 @@ export declare class OasRef<T extends OasRefData['refType']> extends OasBase {
|
|
|
264
264
|
*
|
|
265
265
|
* @returns Either the resolved component or another reference in the chain
|
|
266
266
|
* @throws {DanglingRefError} when the reference names nothing in the
|
|
267
|
-
* document (kept when `
|
|
267
|
+
* document (kept when `skmtc.config.json` `parse.danglingRefs` lists its kind),
|
|
268
268
|
* including a `$ref` with no name, such as `#/components/schemas/`
|
|
269
269
|
* @throws Error when it names a component of another kind, such as a
|
|
270
270
|
* `requestBody` ref to `#/components/schemas/…`
|
package/script/oas/ref/Ref.js
CHANGED
|
@@ -441,7 +441,7 @@ class OasRef extends OasBase_js_1.OasBase {
|
|
|
441
441
|
* @returns The resolved component
|
|
442
442
|
* @throws {DanglingRefError} when a reference on the chain names nothing,
|
|
443
443
|
* or the chain loops ({@link toLoop}), so it never reaches a component.
|
|
444
|
-
* The parser keeps either one only when `
|
|
444
|
+
* The parser keeps either one only when `parse.danglingRefs` lists its kind.
|
|
445
445
|
* @throws Error when a reference on the chain names a component of another
|
|
446
446
|
* kind (see {@link resolveOnce})
|
|
447
447
|
*/
|
|
@@ -468,7 +468,7 @@ class OasRef extends OasBase_js_1.OasBase {
|
|
|
468
468
|
*
|
|
469
469
|
* @returns Either the resolved component or another reference in the chain
|
|
470
470
|
* @throws {DanglingRefError} when the reference names nothing in the
|
|
471
|
-
* document (kept when `
|
|
471
|
+
* document (kept when `skmtc.config.json` `parse.danglingRefs` lists its kind),
|
|
472
472
|
* including a `$ref` with no name, such as `#/components/schemas/`
|
|
473
473
|
* @throws Error when it names a component of another kind, such as a
|
|
474
474
|
* `requestBody` ref to `#/components/schemas/…`
|
|
@@ -104,8 +104,8 @@ export declare class OasString<Nullable extends boolean | undefined = boolean |
|
|
|
104
104
|
*/
|
|
105
105
|
deprecated: boolean | undefined;
|
|
106
106
|
/**
|
|
107
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
108
|
-
* `
|
|
107
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
108
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
109
109
|
* not read what. `undefined` otherwise.
|
|
110
110
|
*/
|
|
111
111
|
not: OasUnknown | undefined;
|
|
@@ -150,8 +150,8 @@ class OasString extends OasBase_js_1.OasBase {
|
|
|
150
150
|
value: void 0
|
|
151
151
|
});
|
|
152
152
|
/**
|
|
153
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
154
|
-
* `
|
|
153
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
154
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
155
155
|
* not read what. `undefined` otherwise.
|
|
156
156
|
*/
|
|
157
157
|
Object.defineProperty(this, "not", {
|
|
@@ -188,8 +188,8 @@ export declare class OasUnion extends OasBase {
|
|
|
188
188
|
*/
|
|
189
189
|
default?: unknown;
|
|
190
190
|
/**
|
|
191
|
-
* The schema's `not`, kept as an `OasUnknown` under `
|
|
192
|
-
* `
|
|
191
|
+
* The schema's `not`, kept as an `OasUnknown` under `skmtc.config.json`
|
|
192
|
+
* `parse.not: unknown`: the document says "not something", and core does
|
|
193
193
|
* not read what. `undefined` otherwise.
|
|
194
194
|
*/
|
|
195
195
|
not: OasUnknown | undefined;
|
|
@@ -217,7 +217,7 @@ export declare class OasUnion extends OasBase {
|
|
|
217
217
|
* property, and that allows only string literals for it. No value may
|
|
218
218
|
* belong to two members. A member that is a union, or anything other than
|
|
219
219
|
* an object, makes it `false`, as does a reference on the way that names
|
|
220
|
-
* nothing in the document (kept when `
|
|
220
|
+
* nothing in the document (kept when `parse.danglingRefs` lists `schema`).
|
|
221
221
|
*
|
|
222
222
|
* It reads the schemas only. A generator may refuse more: one that leaves
|
|
223
223
|
* out `readOnly` properties cannot discriminate on one.
|