@skmtc/core 0.47.4 → 0.49.0

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.
Files changed (207) hide show
  1. package/esm/context/CoreContext.d.ts +1 -1
  2. package/esm/context/CoreContext.js +6 -2
  3. package/esm/context/GenerateContext.d.ts +15 -4
  4. package/esm/context/GenerateContext.js +40 -34
  5. package/esm/context/ParseContext.d.ts +4 -4
  6. package/esm/context/ParseContext.js +6 -6
  7. package/esm/context/RenderContext.d.ts +3 -2
  8. package/esm/context/RenderContext.js +6 -5
  9. package/esm/context/generateTypes.d.ts +10 -6
  10. package/esm/context/tryParseAt.d.ts +1 -1
  11. package/esm/context/tryParseAt.js +1 -1
  12. package/esm/dsl/ContentSettings.d.ts +17 -12
  13. package/esm/dsl/ContentSettings.js +13 -9
  14. package/esm/dsl/Inserted.d.ts +4 -3
  15. package/esm/dsl/Inserted.js +2 -2
  16. package/esm/dsl/PendingDefinition.d.ts +3 -2
  17. package/esm/dsl/driverFiles.d.ts +46 -0
  18. package/esm/dsl/driverFiles.js +31 -0
  19. package/esm/dsl/model/ModelDriver.d.ts +5 -7
  20. package/esm/dsl/model/ModelDriver.js +12 -29
  21. package/esm/dsl/operation/gql/GqlOperationDriver.d.ts +1 -1
  22. package/esm/dsl/operation/gql/GqlOperationDriver.js +15 -12
  23. package/esm/dsl/operation/oas/OasOperationDriver.d.ts +1 -1
  24. package/esm/dsl/operation/oas/OasOperationDriver.js +11 -14
  25. package/esm/dsl/webhook/WebhookDriver.d.ts +1 -1
  26. package/esm/dsl/webhook/WebhookDriver.js +15 -12
  27. package/esm/enrichments/EnrichmentAudit.d.ts +1 -1
  28. package/esm/enrichments/EnrichmentWarning.d.ts +1 -1
  29. package/esm/enrichments/findUnknownKeys.d.ts +1 -1
  30. package/esm/enrichments/findUnknownKeys.js +1 -1
  31. package/esm/enrichments/parseEnrichmentUmbrella.d.ts +1 -1
  32. package/esm/enrichments/parseEnrichmentUmbrella.js +1 -1
  33. package/esm/enrichments/parseEnrichmentValue.d.ts +2 -2
  34. package/esm/enrichments/parseEnrichmentValue.js +2 -2
  35. package/esm/enrichments/readEnrichments.d.ts +4 -4
  36. package/esm/enrichments/readEnrichments.js +4 -4
  37. package/esm/enrichments/validateConfig.d.ts +1 -1
  38. package/esm/helpers/applyGeneratedSuffix.d.ts +1 -1
  39. package/esm/helpers/applyGeneratedSuffix.js +1 -1
  40. package/esm/helpers/getByWorkspacePath.d.ts +9 -0
  41. package/esm/helpers/getByWorkspacePath.js +10 -0
  42. package/esm/helpers/normalizeWorkspacePath.d.ts +26 -3
  43. package/esm/helpers/normalizeWorkspacePath.js +17 -2
  44. package/esm/oas/array/Array.d.ts +2 -2
  45. package/esm/oas/array/Array.js +2 -2
  46. package/esm/oas/boolean/Boolean.d.ts +2 -2
  47. package/esm/oas/boolean/Boolean.js +2 -2
  48. package/esm/oas/integer/Integer.d.ts +2 -2
  49. package/esm/oas/integer/Integer.js +2 -2
  50. package/esm/oas/intersection/Intersection.d.ts +3 -3
  51. package/esm/oas/intersection/Intersection.js +3 -3
  52. package/esm/oas/number/Number.d.ts +2 -2
  53. package/esm/oas/number/Number.js +2 -2
  54. package/esm/oas/object/Object.d.ts +2 -2
  55. package/esm/oas/object/Object.js +2 -2
  56. package/esm/oas/operation/Operation.d.ts +1 -1
  57. package/esm/oas/operation/Operation.js +1 -1
  58. package/esm/oas/operation/toEffectiveParameters.d.ts +2 -2
  59. package/esm/oas/operation/toEffectiveParameters.js +2 -2
  60. package/esm/oas/ref/DanglingRefError.d.ts +1 -1
  61. package/esm/oas/ref/DanglingRefError.js +1 -1
  62. package/esm/oas/ref/Ref.d.ts +2 -2
  63. package/esm/oas/ref/Ref.js +2 -2
  64. package/esm/oas/string/String.d.ts +2 -2
  65. package/esm/oas/string/String.js +2 -2
  66. package/esm/oas/union/Union.d.ts +3 -3
  67. package/esm/oas/union/Union.js +3 -3
  68. package/esm/oas/unknown/Unknown.d.ts +2 -2
  69. package/esm/oas/unknown/Unknown.js +2 -2
  70. package/esm/parse/allOfSystem.d.ts +4 -4
  71. package/esm/parse/allOfSystem.js +2 -2
  72. package/esm/parse/anyOfSystem.d.ts +5 -5
  73. package/esm/parse/anyOfSystem.js +4 -4
  74. package/esm/parse/keptRefs.d.ts +2 -2
  75. package/esm/parse/v3-0/_merge-all-of/merge-union.d.ts +1 -1
  76. package/esm/parse/v3-0/_merge-all-of/merge-union.js +3 -3
  77. package/esm/parse/v3-0/_merge-all-of/merge.js +2 -2
  78. package/esm/parse/v3-0/_merge-all-of/types.d.ts +4 -4
  79. package/esm/parse/v3-0/ref/toRefV31.js +1 -1
  80. package/esm/parse/v3-0/schema/toSchemasV3.js +3 -3
  81. package/esm/parse/v3-1/_merge-all-of/merge-union.d.ts +1 -1
  82. package/esm/parse/v3-1/_merge-all-of/merge-union.js +3 -3
  83. package/esm/parse/v3-1/_merge-all-of/merge.js +2 -2
  84. package/esm/parse/v3-1/_merge-all-of/types.d.ts +4 -4
  85. package/esm/parse/v3-1/ref/toRefV31.js +1 -1
  86. package/esm/parse/v3-1/schema/toSchemasV3.js +3 -3
  87. package/esm/parse/v3-2/_merge-all-of/merge-union.d.ts +1 -1
  88. package/esm/parse/v3-2/_merge-all-of/merge-union.js +3 -3
  89. package/esm/parse/v3-2/_merge-all-of/merge.js +2 -2
  90. package/esm/parse/v3-2/_merge-all-of/types.d.ts +4 -4
  91. package/esm/parse/v3-2/ref/toRefV31.js +1 -1
  92. package/esm/parse/v3-2/schema/toSchemasV3.js +3 -3
  93. package/esm/run/toEnrichmentDefaults.d.ts +1 -1
  94. package/esm/run/toEnrichmentDefaults.js +1 -1
  95. package/esm/types/EnrichmentDefaults.d.ts +1 -1
  96. package/esm/types/EnrichmentDefaults.js +1 -1
  97. package/esm/types/Enrichments.d.ts +1 -1
  98. package/esm/types/Manifest.d.ts +1 -1
  99. package/esm/types/ModuleSelect.d.ts +1 -1
  100. package/esm/types/Settings.d.ts +29 -11
  101. package/esm/types/Settings.js +13 -6
  102. package/esm/types/Variant.d.ts +3 -3
  103. package/esm/types/Variant.js +3 -3
  104. package/package.json +1 -1
  105. package/script/context/CoreContext.d.ts +1 -1
  106. package/script/context/CoreContext.js +6 -2
  107. package/script/context/GenerateContext.d.ts +15 -4
  108. package/script/context/GenerateContext.js +38 -32
  109. package/script/context/ParseContext.d.ts +4 -4
  110. package/script/context/ParseContext.js +6 -6
  111. package/script/context/RenderContext.d.ts +3 -2
  112. package/script/context/RenderContext.js +6 -5
  113. package/script/context/generateTypes.d.ts +10 -6
  114. package/script/context/tryParseAt.d.ts +1 -1
  115. package/script/context/tryParseAt.js +1 -1
  116. package/script/dsl/ContentSettings.d.ts +17 -12
  117. package/script/dsl/ContentSettings.js +13 -9
  118. package/script/dsl/Inserted.d.ts +4 -3
  119. package/script/dsl/Inserted.js +2 -2
  120. package/script/dsl/PendingDefinition.d.ts +3 -2
  121. package/script/dsl/driverFiles.d.ts +46 -0
  122. package/script/dsl/driverFiles.js +38 -0
  123. package/script/dsl/model/ModelDriver.d.ts +5 -7
  124. package/script/dsl/model/ModelDriver.js +12 -29
  125. package/script/dsl/operation/gql/GqlOperationDriver.d.ts +1 -1
  126. package/script/dsl/operation/gql/GqlOperationDriver.js +15 -12
  127. package/script/dsl/operation/oas/OasOperationDriver.d.ts +1 -1
  128. package/script/dsl/operation/oas/OasOperationDriver.js +11 -14
  129. package/script/dsl/webhook/WebhookDriver.d.ts +1 -1
  130. package/script/dsl/webhook/WebhookDriver.js +15 -12
  131. package/script/enrichments/EnrichmentAudit.d.ts +1 -1
  132. package/script/enrichments/EnrichmentWarning.d.ts +1 -1
  133. package/script/enrichments/findUnknownKeys.d.ts +1 -1
  134. package/script/enrichments/findUnknownKeys.js +1 -1
  135. package/script/enrichments/parseEnrichmentUmbrella.d.ts +1 -1
  136. package/script/enrichments/parseEnrichmentUmbrella.js +1 -1
  137. package/script/enrichments/parseEnrichmentValue.d.ts +2 -2
  138. package/script/enrichments/parseEnrichmentValue.js +2 -2
  139. package/script/enrichments/readEnrichments.d.ts +4 -4
  140. package/script/enrichments/readEnrichments.js +4 -4
  141. package/script/enrichments/validateConfig.d.ts +1 -1
  142. package/script/helpers/applyGeneratedSuffix.d.ts +1 -1
  143. package/script/helpers/applyGeneratedSuffix.js +1 -1
  144. package/script/helpers/getByWorkspacePath.d.ts +9 -0
  145. package/script/helpers/getByWorkspacePath.js +14 -0
  146. package/script/helpers/normalizeWorkspacePath.d.ts +26 -3
  147. package/script/helpers/normalizeWorkspacePath.js +19 -3
  148. package/script/oas/array/Array.d.ts +2 -2
  149. package/script/oas/array/Array.js +2 -2
  150. package/script/oas/boolean/Boolean.d.ts +2 -2
  151. package/script/oas/boolean/Boolean.js +2 -2
  152. package/script/oas/integer/Integer.d.ts +2 -2
  153. package/script/oas/integer/Integer.js +2 -2
  154. package/script/oas/intersection/Intersection.d.ts +3 -3
  155. package/script/oas/intersection/Intersection.js +3 -3
  156. package/script/oas/number/Number.d.ts +2 -2
  157. package/script/oas/number/Number.js +2 -2
  158. package/script/oas/object/Object.d.ts +2 -2
  159. package/script/oas/object/Object.js +2 -2
  160. package/script/oas/operation/Operation.d.ts +1 -1
  161. package/script/oas/operation/Operation.js +1 -1
  162. package/script/oas/operation/toEffectiveParameters.d.ts +2 -2
  163. package/script/oas/operation/toEffectiveParameters.js +2 -2
  164. package/script/oas/ref/DanglingRefError.d.ts +1 -1
  165. package/script/oas/ref/DanglingRefError.js +1 -1
  166. package/script/oas/ref/Ref.d.ts +2 -2
  167. package/script/oas/ref/Ref.js +2 -2
  168. package/script/oas/string/String.d.ts +2 -2
  169. package/script/oas/string/String.js +2 -2
  170. package/script/oas/union/Union.d.ts +3 -3
  171. package/script/oas/union/Union.js +3 -3
  172. package/script/oas/unknown/Unknown.d.ts +2 -2
  173. package/script/oas/unknown/Unknown.js +2 -2
  174. package/script/parse/allOfSystem.d.ts +4 -4
  175. package/script/parse/allOfSystem.js +2 -2
  176. package/script/parse/anyOfSystem.d.ts +5 -5
  177. package/script/parse/anyOfSystem.js +4 -4
  178. package/script/parse/keptRefs.d.ts +2 -2
  179. package/script/parse/v3-0/_merge-all-of/merge-union.d.ts +1 -1
  180. package/script/parse/v3-0/_merge-all-of/merge-union.js +3 -3
  181. package/script/parse/v3-0/_merge-all-of/merge.js +2 -2
  182. package/script/parse/v3-0/_merge-all-of/types.d.ts +4 -4
  183. package/script/parse/v3-0/ref/toRefV31.js +1 -1
  184. package/script/parse/v3-0/schema/toSchemasV3.js +3 -3
  185. package/script/parse/v3-1/_merge-all-of/merge-union.d.ts +1 -1
  186. package/script/parse/v3-1/_merge-all-of/merge-union.js +3 -3
  187. package/script/parse/v3-1/_merge-all-of/merge.js +2 -2
  188. package/script/parse/v3-1/_merge-all-of/types.d.ts +4 -4
  189. package/script/parse/v3-1/ref/toRefV31.js +1 -1
  190. package/script/parse/v3-1/schema/toSchemasV3.js +3 -3
  191. package/script/parse/v3-2/_merge-all-of/merge-union.d.ts +1 -1
  192. package/script/parse/v3-2/_merge-all-of/merge-union.js +3 -3
  193. package/script/parse/v3-2/_merge-all-of/merge.js +2 -2
  194. package/script/parse/v3-2/_merge-all-of/types.d.ts +4 -4
  195. package/script/parse/v3-2/ref/toRefV31.js +1 -1
  196. package/script/parse/v3-2/schema/toSchemasV3.js +3 -3
  197. package/script/run/toEnrichmentDefaults.d.ts +1 -1
  198. package/script/run/toEnrichmentDefaults.js +1 -1
  199. package/script/types/EnrichmentDefaults.d.ts +1 -1
  200. package/script/types/EnrichmentDefaults.js +1 -1
  201. package/script/types/Enrichments.d.ts +1 -1
  202. package/script/types/Manifest.d.ts +1 -1
  203. package/script/types/ModuleSelect.d.ts +1 -1
  204. package/script/types/Settings.d.ts +29 -11
  205. package/script/types/Settings.js +14 -7
  206. package/script/types/Variant.d.ts +3 -3
  207. package/script/types/Variant.js +3 -3
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  var _OasOperationDriver_into;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.OasOperationDriver = void 0;
19
- const normalizeWorkspacePath_js_1 = require("../../../helpers/normalizeWorkspacePath.js");
19
+ const driverFiles_js_1 = require("../../driverFiles.js");
20
20
  const tiny_invariant_1 = __importDefault(require("tiny-invariant"));
21
21
  const GeneratorKeys_js_1 = require("../../GeneratorKeys.js");
22
22
  const Variant_js_1 = require("../../../types/Variant.js");
@@ -140,10 +140,7 @@ class OasOperationDriver {
140
140
  const { identifier, exportPath } = this.settings;
141
141
  // The file an import has to be stitched into, or `undefined` when there
142
142
  // is none to stitch — no destination, or the projection's own file.
143
- const importInto = destinationPath &&
144
- (0, normalizeWorkspacePath_js_1.normalizeWorkspacePath)(exportPath) !== (0, normalizeWorkspacePath_js_1.normalizeWorkspacePath)(destinationPath)
145
- ? destinationPath
146
- : undefined;
143
+ const importInto = (0, driverFiles_js_1.toImportDestination)({ context: this.context, exportPath, destinationPath });
147
144
  // A member is declared inside its container, so it has no module-level
148
145
  // name — an import of it would name a symbol its file never exports, and
149
146
  // the `Inserted.toName()` handed back would be unresolvable. What a caller
@@ -160,10 +157,13 @@ class OasOperationDriver {
160
157
  // via the pure-data `context.register`. The import lands in the
161
158
  // caller's file (`destinationPath`); `insertOperation` only composes
162
159
  // same-language generators, so the peer's `lang` is the caller's.
163
- this.ensureFile(importInto);
164
160
  this.context.register({
165
161
  imports: [this.projection.lang.toImport({ identifier, module: exportPath })],
166
- destinationPath: importInto
162
+ destinationPath: (0, driverFiles_js_1.toImportFile)({
163
+ context: this.context,
164
+ lang: this.projection.lang,
165
+ destination: importInto
166
+ }).path
167
167
  });
168
168
  }
169
169
  return definition;
@@ -172,14 +172,10 @@ class OasOperationDriver {
172
172
  * Ensure the file at `path` exists, creating it on first write through
173
173
  * the projection's language — the static read off the projection class
174
174
  * at the use site, never persisted (works pre-construction on the
175
- * cache-hit path). Returns the normalized path.
175
+ * cache-hit path). Returns the file.
176
176
  */
177
177
  ensureFile(path) {
178
- const normalizedPath = (0, normalizeWorkspacePath_js_1.normalizeWorkspacePath)(path);
179
- if (!this.context.getFile(normalizedPath)) {
180
- this.context.addFile(this.projection.lang.createFile({ path: normalizedPath, settings: this.context.settings }));
181
- }
182
- return normalizedPath;
178
+ return (0, driverFiles_js_1.ensureFile)({ context: this.context, lang: this.projection.lang, path });
183
179
  }
184
180
  getDefinition({ identifier, exportPath }) {
185
181
  // A member's place is its container, resolved (and created, on the first
@@ -191,7 +187,8 @@ class OasOperationDriver {
191
187
  const into = __classPrivateFieldGet(this, _OasOperationDriver_into, "f");
192
188
  // Spread rather than always-pass: a non-member's call shape is exactly
193
189
  // what it was, so nothing downstream sees a key it never had.
194
- const cachedDefinition = this.context.findDefinition({
190
+ const cachedDefinition = (0, driverFiles_js_1.findDefinitionAt)({
191
+ context: this.context,
195
192
  name: identifier.name,
196
193
  exportPath,
197
194
  ...(into !== undefined ? { into } : {})
@@ -36,7 +36,7 @@ export declare class WebhookDriver<V extends GeneratedValue, EnrichmentType = un
36
36
  private apply;
37
37
  /**
38
38
  * Ensure the file at `path` exists, creating it on first write through the
39
- * projection's language. Returns the normalized path.
39
+ * projection's language. Returns the file.
40
40
  */
41
41
  private ensureFile;
42
42
  private getDefinition;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.WebhookDriver = void 0;
7
- const normalizeWorkspacePath_js_1 = require("../../helpers/normalizeWorkspacePath.js");
7
+ const driverFiles_js_1 = require("../driverFiles.js");
8
8
  const GeneratorKeys_js_1 = require("../GeneratorKeys.js");
9
9
  const Variant_js_1 = require("../../types/Variant.js");
10
10
  const ProjectionOptions_js_1 = require("../../types/ProjectionOptions.js");
@@ -101,30 +101,33 @@ class WebhookDriver {
101
101
  apply({ destinationPath } = {}) {
102
102
  const { identifier, exportPath } = this.settings;
103
103
  const definition = this.getDefinition({ identifier, exportPath });
104
- if (destinationPath &&
105
- (0, normalizeWorkspacePath_js_1.normalizeWorkspacePath)(exportPath) !== (0, normalizeWorkspacePath_js_1.normalizeWorkspacePath)(destinationPath)) {
104
+ const importInto = (0, driverFiles_js_1.toImportDestination)({ context: this.context, exportPath, destinationPath });
105
+ if (importInto !== undefined) {
106
106
  // Cross-file import of the peer's identifier from its export path.
107
- this.ensureFile(destinationPath);
108
107
  this.context.register({
109
108
  imports: [this.projection.lang.toImport({ identifier, module: exportPath })],
110
- destinationPath
109
+ destinationPath: (0, driverFiles_js_1.toImportFile)({
110
+ context: this.context,
111
+ lang: this.projection.lang,
112
+ destination: importInto
113
+ }).path
111
114
  });
112
115
  }
113
116
  return definition;
114
117
  }
115
118
  /**
116
119
  * Ensure the file at `path` exists, creating it on first write through the
117
- * projection's language. Returns the normalized path.
120
+ * projection's language. Returns the file.
118
121
  */
119
122
  ensureFile(path) {
120
- const normalizedPath = (0, normalizeWorkspacePath_js_1.normalizeWorkspacePath)(path);
121
- if (!this.context.getFile(normalizedPath)) {
122
- this.context.addFile(this.projection.lang.createFile({ path: normalizedPath, settings: this.context.settings }));
123
- }
124
- return normalizedPath;
123
+ return (0, driverFiles_js_1.ensureFile)({ context: this.context, lang: this.projection.lang, path });
125
124
  }
126
125
  getDefinition({ identifier, exportPath }) {
127
- const cachedDefinition = this.context.findDefinition({ name: identifier.name, exportPath });
126
+ const cachedDefinition = (0, driverFiles_js_1.findDefinitionAt)({
127
+ context: this.context,
128
+ name: identifier.name,
129
+ exportPath
130
+ });
128
131
  if (this.affirmDefinition(cachedDefinition, exportPath)) {
129
132
  return cachedDefinition;
130
133
  }
@@ -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 `client.json#settings.enrichments` record. */
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
- * `client.json#settings.enrichments` locating the offending entry —
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 client.json paired with an older generator
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 client.json paired with an older generator
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 `client.json`. Unknown-key detection runs first,
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 `client.json`. Unknown-key detection runs first,
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 `client.json#settings.enrichments` routing path of the value at `path` inside `value`. */
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
- * `client.json`, so the user can fix them all in one pass.
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
- * `client.json`, so the user can fix them all in one pass.
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 client.json (settings.enrichments):`, ...lines].join('\n'));
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
- * (`client.json#settings.enrichments`), distinguished only by where they
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
- * `client.json#settings.enrichments[generatorId]._generator`, validated
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
- * `client.json`. The item is recorded as `error`, and the run fails once
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
- * `client.json#settings.enrichments._stack`, validated through the
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
- * (`client.json#settings.enrichments`), distinguished only by where they
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
- * `client.json#settings.enrichments[generatorId]._generator`, validated
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
- * `client.json`. The item is recorded as `error`, and the run fails once
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
- * `client.json#settings.enrichments._stack`, validated through the
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
- * `client.json#settings.enrichments`:
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`)
@@ -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
- * `client.json#settings.generatedSuffix`; setting it to `''` disables
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
- * `client.json#settings.generatedSuffix`; setting it to `''` disables
10
+ * `skmtc.config.json#settings.generatedSuffix`; setting it to `''` disables
11
11
  * injection entirely.
12
12
  */
13
13
  exports.DEFAULT_GENERATED_SUFFIX = '.generated';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The value at `path` in a map keyed by normalized workspace paths, such as
3
+ * the engine's files. A path that is a key is normalized already, so only a
4
+ * path that is no key is normalized, and looked up again.
5
+ *
6
+ * Throws, as {@link normalizeWorkspacePath} does, for a path that is no key
7
+ * and cannot name a file below `basePath`.
8
+ */
9
+ export declare const getByWorkspacePath: <Value>(map: ReadonlyMap<string, Value>, path: string) => Value | undefined;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getByWorkspacePath = void 0;
4
+ const normalizeWorkspacePath_js_1 = require("./normalizeWorkspacePath.js");
5
+ /**
6
+ * The value at `path` in a map keyed by normalized workspace paths, such as
7
+ * the engine's files. A path that is a key is normalized already, so only a
8
+ * path that is no key is normalized, and looked up again.
9
+ *
10
+ * Throws, as {@link normalizeWorkspacePath} does, for a path that is no key
11
+ * and cannot name a file below `basePath`.
12
+ */
13
+ const getByWorkspacePath = (map, path) => map.get(path) ?? map.get((0, normalizeWorkspacePath_js_1.normalizeWorkspacePath)(path));
14
+ exports.getByWorkspacePath = getByWorkspacePath;
@@ -1,3 +1,17 @@
1
+ import type { Brand } from '../types/Brand.js';
2
+ /**
3
+ * A workspace path in its one spelling. Only this module makes one:
4
+ * {@link normalizeWorkspacePath}, and
5
+ * {@link applyGeneratedSuffixToWorkspacePath} for one with the suffix
6
+ * inserted. The engine keys files by it, so a value of this type finds its
7
+ * file without being normalized again.
8
+ */
9
+ export type WorkspacePath = Brand<string, 'WorkspacePath'>;
10
+ /**
11
+ * `Path`, unless it is already a {@link WorkspacePath}: normalizing one
12
+ * again is a compile error.
13
+ */
14
+ export type UncheckedPath<Path extends string> = Path extends WorkspacePath ? never : Path;
1
15
  /**
2
16
  * Options for {@link normalizeWorkspacePath} and {@link toNormalizedWorkspacePath}.
3
17
  */
@@ -13,7 +27,7 @@ export type NormalizeWorkspacePathOptions = {
13
27
  export declare const hasParentSegment: (path: string) => boolean;
14
28
  /**
15
29
  * Whether a path is absolute on either host: a POSIX root, a Windows drive
16
- * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a client.json
30
+ * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a skmtc.config.json
17
31
  * written on Windows is rejected the same way on Linux.
18
32
  */
19
33
  export declare const isAbsolutePath: (path: string) => boolean;
@@ -50,7 +64,9 @@ export declare const toNormalizedWorkspacePath: (path: string, { generatorId }?:
50
64
  * return one as `@/types/User.ts`, `./types/User.ts`, `/types/User.ts`,
51
65
  * `types/User.ts`, or with Windows separators; the engine stores this form
52
66
  * and nothing else, so file-map keys, import modules and the ejected lookup
53
- * always agree. The result is a fixed point.
67
+ * always agree. The result is a fixed point, and is typed
68
+ * {@link WorkspacePath} so that passing it in again does not compile: a
69
+ * value of that type is already in this form.
54
70
  *
55
71
  * Throws in the cases {@link toNormalizedWorkspacePath} throws.
56
72
  *
@@ -61,4 +77,11 @@ export declare const toNormalizedWorkspacePath: (path: string, { generatorId }?:
61
77
  * normalizeWorkspacePath('../User.ts') // throws
62
78
  * ```
63
79
  */
64
- export declare const normalizeWorkspacePath: (path: string, options?: NormalizeWorkspacePathOptions) => string;
80
+ export declare const normalizeWorkspacePath: <Path extends string>(path: UncheckedPath<Path>, options?: NormalizeWorkspacePathOptions) => WorkspacePath;
81
+ /**
82
+ * `path` with the generated-file suffix inserted ({@link applyGeneratedSuffix}),
83
+ * still a {@link WorkspacePath}. A suffix with no separator only lengthens the
84
+ * last segment of a path in its one spelling, so the result is in that
85
+ * spelling too; a suffix with one is normalized with the path.
86
+ */
87
+ export declare const applyGeneratedSuffixToWorkspacePath: (path: WorkspacePath, suffix: string, options?: NormalizeWorkspacePathOptions) => WorkspacePath;
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.normalizeWorkspacePath = exports.toNormalizedWorkspacePath = exports.isValidWorkspacePath = exports.hasWorkspaceAnchor = exports.isAbsolutePath = exports.hasParentSegment = void 0;
3
+ exports.applyGeneratedSuffixToWorkspacePath = exports.normalizeWorkspacePath = exports.toNormalizedWorkspacePath = exports.isValidWorkspacePath = exports.hasWorkspaceAnchor = exports.isAbsolutePath = exports.hasParentSegment = void 0;
4
4
  const normalize_js_1 = require("../deps/jsr.io/@std/path/1.1.6/posix/normalize.js");
5
5
  const is_absolute_js_1 = require("../deps/jsr.io/@std/path/1.1.6/posix/is_absolute.js");
6
6
  const is_absolute_js_2 = require("../deps/jsr.io/@std/path/1.1.6/windows/is_absolute.js");
7
7
  const toWorkspacePath_js_1 = require("./toWorkspacePath.js");
8
+ const applyGeneratedSuffix_js_1 = require("./applyGeneratedSuffix.js");
8
9
  /**
9
10
  * Whether a path contains a `..` parent-reference segment. `..` is a parent
10
11
  * reference only as a whole segment — a directory name that merely contains
@@ -14,7 +15,7 @@ const hasParentSegment = (path) => path.split(/[/\\]/).some(segment => segment =
14
15
  exports.hasParentSegment = hasParentSegment;
15
16
  /**
16
17
  * Whether a path is absolute on either host: a POSIX root, a Windows drive
17
- * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a client.json
18
+ * (`C:\`, `C:/`) or a UNC share. Checked on every host, so a skmtc.config.json
18
19
  * written on Windows is rejected the same way on Linux.
19
20
  */
20
21
  const isAbsolutePath = (path) => (0, is_absolute_js_1.isAbsolute)(path.replaceAll('\\', '/')) || (0, is_absolute_js_2.isAbsolute)(path);
@@ -77,7 +78,9 @@ exports.toNormalizedWorkspacePath = toNormalizedWorkspacePath;
77
78
  * return one as `@/types/User.ts`, `./types/User.ts`, `/types/User.ts`,
78
79
  * `types/User.ts`, or with Windows separators; the engine stores this form
79
80
  * and nothing else, so file-map keys, import modules and the ejected lookup
80
- * always agree. The result is a fixed point.
81
+ * always agree. The result is a fixed point, and is typed
82
+ * {@link WorkspacePath} so that passing it in again does not compile: a
83
+ * value of that type is already in this form.
81
84
  *
82
85
  * Throws in the cases {@link toNormalizedWorkspacePath} throws.
83
86
  *
@@ -90,6 +93,19 @@ exports.toNormalizedWorkspacePath = toNormalizedWorkspacePath;
90
93
  */
91
94
  const normalizeWorkspacePath = (path, options = {}) => `@/${(0, exports.toNormalizedWorkspacePath)(path, options)}`;
92
95
  exports.normalizeWorkspacePath = normalizeWorkspacePath;
96
+ /**
97
+ * `path` with the generated-file suffix inserted ({@link applyGeneratedSuffix}),
98
+ * still a {@link WorkspacePath}. A suffix with no separator only lengthens the
99
+ * last segment of a path in its one spelling, so the result is in that
100
+ * spelling too; a suffix with one is normalized with the path.
101
+ */
102
+ const applyGeneratedSuffixToWorkspacePath = (path, suffix, options = {}) => {
103
+ const suffixed = (0, applyGeneratedSuffix_js_1.applyGeneratedSuffix)(path, suffix);
104
+ return /[/\\]/.test(suffix)
105
+ ? (0, exports.normalizeWorkspacePath)(suffixed, options)
106
+ : suffixed;
107
+ };
108
+ exports.applyGeneratedSuffixToWorkspacePath = applyGeneratedSuffixToWorkspacePath;
93
109
  /**
94
110
  * Separator swap, then every anchor spelling goes (`@/`, `./`, a leading
95
111
  * `/` — {@link toWorkspacePath}), then POSIX normalize of what is left so
@@ -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 `client.json`
115
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
161
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
88
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
122
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
122
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
174
- * `system.not: unknown`: the document says "not something", and core does
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
- * `client.json` `system.intersections` keeps is not merged: the schema is an
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 `client.json`
87
- * `system.not: unknown`. `undefined` otherwise.
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
- * `client.json` `system.intersections` keeps is not merged: the schema is an
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 `client.json`
133
- * `system.not: unknown`. `undefined` otherwise.
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 `client.json`
122
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
174
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
228
- * `system.not: unknown`: the document says "not something", and core does
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 `client.json`
267
- * `system.not: unknown`: the document says "not something", and core does
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", {