klasik 2.6.2 → 2.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/go-schema-gen
CHANGED
|
Binary file
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* - Handles nested refs (ref within ref)
|
|
11
11
|
* - Deep clones to avoid mutations
|
|
12
12
|
* - Recursively traverses spec object
|
|
13
|
+
* - Promotes external schema refs to components/schemas
|
|
14
|
+
* - Promotes sibling schemas referenced via internal $ref within promoted schemas
|
|
13
15
|
*/
|
|
14
16
|
export interface RefInlinerOptions {
|
|
15
17
|
/** Base URL of the main spec (for error messages) */
|
|
@@ -28,6 +30,7 @@ export declare class RefInliner {
|
|
|
28
30
|
private resolvedRefs;
|
|
29
31
|
private refResolver;
|
|
30
32
|
private baseUrl?;
|
|
33
|
+
private promotedSchemas;
|
|
31
34
|
constructor();
|
|
32
35
|
/**
|
|
33
36
|
* Inline all external $ref in a spec
|
|
@@ -55,6 +58,27 @@ export declare class RefInliner {
|
|
|
55
58
|
* @returns Inlined content
|
|
56
59
|
*/
|
|
57
60
|
private resolveAndInline;
|
|
61
|
+
/**
|
|
62
|
+
* Find internal schema $ref within promoted content and promote those
|
|
63
|
+
* sibling schemas from the same source document.
|
|
64
|
+
*
|
|
65
|
+
* When a schema from a sub-file is promoted, it may contain internal
|
|
66
|
+
* $ref like #/components/schemas/Sibling that point to other schemas
|
|
67
|
+
* in the same sub-file. Those siblings must also be promoted.
|
|
68
|
+
*/
|
|
69
|
+
private promoteSiblingSchemas;
|
|
70
|
+
/**
|
|
71
|
+
* Find all internal $ref pointing to schemas within an object
|
|
72
|
+
* Returns the schema names referenced via #/components/schemas/X or #/definitions/X
|
|
73
|
+
*/
|
|
74
|
+
private findInternalSchemaRefs;
|
|
75
|
+
/**
|
|
76
|
+
* Extract a schema name from a $ref fragment
|
|
77
|
+
* Matches patterns like /components/schemas/Name or /definitions/Name
|
|
78
|
+
* @param fragment The fragment part of the ref (after #)
|
|
79
|
+
* @returns Schema name or null if not a schema ref
|
|
80
|
+
*/
|
|
81
|
+
private extractSchemaName;
|
|
58
82
|
/**
|
|
59
83
|
* Check if a ref is external (doesn't start with #)
|
|
60
84
|
* @param ref The $ref string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-inliner.d.ts","sourceRoot":"","sources":["../../src/loaders/ref-inliner.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ref-inliner.d.ts","sourceRoot":"","sources":["../../src/loaders/ref-inliner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,eAAgB,SAAQ,KAAK;aAGtB,GAAG,EAAE,MAAM;aACX,KAAK,CAAC,EAAE,KAAK;gBAF7B,OAAO,EAAE,MAAM,EACC,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,KAAK,YAAA;CAKhC;AAED;;;GAGG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,OAAO,CAAC,eAAe,CAAmB;;IAQ1C;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,GAAG,EACT,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,OAAO,GAAE,iBAAsB,GAC9B,GAAG;IA2BN;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAIjB;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAqClB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAoExB;;;;;;;OAOG;IACH,OAAO,CAAC,qBAAqB;IA4B7B;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IA0B9B;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;;;OAIG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAInC;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS;CAG7C"}
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* - Handles nested refs (ref within ref)
|
|
12
12
|
* - Deep clones to avoid mutations
|
|
13
13
|
* - Recursively traverses spec object
|
|
14
|
+
* - Promotes external schema refs to components/schemas
|
|
15
|
+
* - Promotes sibling schemas referenced via internal $ref within promoted schemas
|
|
14
16
|
*/
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
18
|
exports.RefInliner = exports.RefInlinerError = void 0;
|
|
@@ -32,6 +34,7 @@ class RefInliner {
|
|
|
32
34
|
constructor() {
|
|
33
35
|
this.resolvedRefs = new Map();
|
|
34
36
|
this.refResolver = new ref_resolver_1.RefResolver();
|
|
37
|
+
this.promotedSchemas = new Map();
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
37
40
|
* Inline all external $ref in a spec
|
|
@@ -43,10 +46,24 @@ class RefInliner {
|
|
|
43
46
|
inline(spec, resolvedRefs, options = {}) {
|
|
44
47
|
this.resolvedRefs = resolvedRefs;
|
|
45
48
|
this.baseUrl = options.baseUrl;
|
|
49
|
+
this.promotedSchemas = new Map();
|
|
46
50
|
// Deep clone to avoid mutating original spec
|
|
47
51
|
const cloned = this.deepClone(spec);
|
|
48
52
|
// Recursively inline refs
|
|
49
|
-
|
|
53
|
+
const result = this.inlineRefs(cloned);
|
|
54
|
+
// Merge promoted schemas into components/schemas
|
|
55
|
+
if (this.promotedSchemas.size > 0) {
|
|
56
|
+
if (!result.components) {
|
|
57
|
+
result.components = {};
|
|
58
|
+
}
|
|
59
|
+
if (!result.components.schemas) {
|
|
60
|
+
result.components.schemas = {};
|
|
61
|
+
}
|
|
62
|
+
for (const [name, schema] of this.promotedSchemas) {
|
|
63
|
+
result.components.schemas[name] = schema;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
50
67
|
}
|
|
51
68
|
/**
|
|
52
69
|
* Deep clone an object using JSON serialization
|
|
@@ -98,25 +115,27 @@ class RefInliner {
|
|
|
98
115
|
resolveAndInline(ref) {
|
|
99
116
|
// Split ref into file part and fragment part
|
|
100
117
|
const [filePart, fragment] = ref.split('#');
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
-
|
|
118
|
+
// Check if this ref points to a named schema that should be promoted
|
|
119
|
+
const schemaName = this.extractSchemaName(fragment);
|
|
120
|
+
// Try to get resolved content (full document)
|
|
121
|
+
let fullDocument = this.resolvedRefs.get(ref);
|
|
104
122
|
// If not found with full ref, try finding by file part
|
|
105
123
|
// This handles cases where multiple refs point to same file with different fragments
|
|
106
|
-
if (!
|
|
107
|
-
// Look for any key that starts with the file part
|
|
124
|
+
if (!fullDocument && filePart) {
|
|
108
125
|
for (const [key, value] of this.resolvedRefs.entries()) {
|
|
109
126
|
const [keyFilePart] = key.split('#');
|
|
110
127
|
if (keyFilePart === filePart) {
|
|
111
|
-
|
|
128
|
+
fullDocument = value;
|
|
112
129
|
break;
|
|
113
130
|
}
|
|
114
131
|
}
|
|
115
132
|
}
|
|
116
133
|
// If still not found, throw error
|
|
117
|
-
if (!
|
|
134
|
+
if (!fullDocument) {
|
|
118
135
|
throw new RefInlinerError(`Cannot inline ref "${ref}": not found in resolved refs`, ref);
|
|
119
136
|
}
|
|
137
|
+
// Start with full document content
|
|
138
|
+
let content = fullDocument;
|
|
120
139
|
// If there's a fragment, resolve it within the document
|
|
121
140
|
if (fragment) {
|
|
122
141
|
try {
|
|
@@ -129,7 +148,87 @@ class RefInliner {
|
|
|
129
148
|
// Clone content to avoid mutations
|
|
130
149
|
content = this.deepClone(content);
|
|
131
150
|
// Recursively inline any refs within this content
|
|
132
|
-
|
|
151
|
+
content = this.inlineRefs(content);
|
|
152
|
+
// If this ref points to a named schema, promote it to components/schemas
|
|
153
|
+
// and return an internal $ref instead of inline content
|
|
154
|
+
if (schemaName) {
|
|
155
|
+
if (!this.promotedSchemas.has(schemaName)) {
|
|
156
|
+
this.promotedSchemas.set(schemaName, content);
|
|
157
|
+
// Promote sibling schemas from the same document that are referenced
|
|
158
|
+
// via internal $ref (e.g., #/components/schemas/SiblingSchema)
|
|
159
|
+
this.promoteSiblingSchemas(content, fullDocument);
|
|
160
|
+
}
|
|
161
|
+
return { $ref: `#/components/schemas/${schemaName}` };
|
|
162
|
+
}
|
|
163
|
+
return content;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Find internal schema $ref within promoted content and promote those
|
|
167
|
+
* sibling schemas from the same source document.
|
|
168
|
+
*
|
|
169
|
+
* When a schema from a sub-file is promoted, it may contain internal
|
|
170
|
+
* $ref like #/components/schemas/Sibling that point to other schemas
|
|
171
|
+
* in the same sub-file. Those siblings must also be promoted.
|
|
172
|
+
*/
|
|
173
|
+
promoteSiblingSchemas(content, fullDocument) {
|
|
174
|
+
// Find all internal schema refs in the content
|
|
175
|
+
const internalRefs = this.findInternalSchemaRefs(content);
|
|
176
|
+
for (const siblingName of internalRefs) {
|
|
177
|
+
// Skip if already promoted
|
|
178
|
+
if (this.promotedSchemas.has(siblingName)) {
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
// Try to find the sibling in the source document's components/schemas or definitions
|
|
182
|
+
const siblingSchema = fullDocument?.components?.schemas?.[siblingName] ??
|
|
183
|
+
fullDocument?.definitions?.[siblingName];
|
|
184
|
+
if (siblingSchema) {
|
|
185
|
+
// Clone and inline external refs within the sibling
|
|
186
|
+
let processed = this.deepClone(siblingSchema);
|
|
187
|
+
processed = this.inlineRefs(processed);
|
|
188
|
+
this.promotedSchemas.set(siblingName, processed);
|
|
189
|
+
// Recursively promote siblings of this sibling
|
|
190
|
+
this.promoteSiblingSchemas(processed, fullDocument);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Find all internal $ref pointing to schemas within an object
|
|
196
|
+
* Returns the schema names referenced via #/components/schemas/X or #/definitions/X
|
|
197
|
+
*/
|
|
198
|
+
findInternalSchemaRefs(obj) {
|
|
199
|
+
const names = new Set();
|
|
200
|
+
const visit = (current) => {
|
|
201
|
+
if (current === null || typeof current !== 'object') {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
if (typeof current.$ref === 'string' && current.$ref.startsWith('#')) {
|
|
205
|
+
const name = this.extractSchemaName(current.$ref.substring(1));
|
|
206
|
+
if (name) {
|
|
207
|
+
names.add(name);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if (Array.isArray(current)) {
|
|
211
|
+
current.forEach(visit);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
Object.values(current).forEach(visit);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
visit(obj);
|
|
218
|
+
return Array.from(names);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Extract a schema name from a $ref fragment
|
|
222
|
+
* Matches patterns like /components/schemas/Name or /definitions/Name
|
|
223
|
+
* @param fragment The fragment part of the ref (after #)
|
|
224
|
+
* @returns Schema name or null if not a schema ref
|
|
225
|
+
*/
|
|
226
|
+
extractSchemaName(fragment) {
|
|
227
|
+
if (!fragment) {
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
const match = fragment.match(/\/(?:components\/schemas|definitions)\/([^/]+)$/);
|
|
231
|
+
return match ? match[1] : null;
|
|
133
232
|
}
|
|
134
233
|
/**
|
|
135
234
|
* Check if a ref is external (doesn't start with #)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-inliner.js","sourceRoot":"","sources":["../../src/loaders/ref-inliner.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"ref-inliner.js","sourceRoot":"","sources":["../../src/loaders/ref-inliner.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,iDAA6C;AAO7C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