@travetto/openapi 3.1.8 → 3.1.10
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/package.json +5 -5
- package/src/spec-generate.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/openapi",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.10",
|
|
4
4
|
"description": "OpenAPI integration support for the Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rest",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"directory": "module/openapi"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/config": "^3.1.
|
|
30
|
-
"@travetto/rest": "^3.1.
|
|
31
|
-
"@travetto/schema": "^3.1.
|
|
29
|
+
"@travetto/config": "^3.1.4",
|
|
30
|
+
"@travetto/rest": "^3.1.6",
|
|
31
|
+
"@travetto/schema": "^3.1.4",
|
|
32
32
|
"@travetto/yaml": "^3.1.1",
|
|
33
33
|
"openapi3-ts": "^3.1.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/cli": "^3.1.
|
|
36
|
+
"@travetto/cli": "^3.1.4",
|
|
37
37
|
"@travetto/command": "^3.1.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
package/src/spec-generate.ts
CHANGED
|
@@ -228,10 +228,12 @@ export class SpecGenerator {
|
|
|
228
228
|
if (RootIndex.getFunctionMetadata(type)?.abstract) {
|
|
229
229
|
const map = SchemaRegistry.getSubTypesForClass(type);
|
|
230
230
|
if (map) {
|
|
231
|
-
extra.oneOf = map
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
extra.oneOf = map
|
|
232
|
+
.filter(x => !RootIndex.getFunctionMetadata(x)?.abstract)
|
|
233
|
+
.map(c => {
|
|
234
|
+
this.#processSchema(c);
|
|
235
|
+
return this.#getType(c);
|
|
236
|
+
});
|
|
235
237
|
}
|
|
236
238
|
}
|
|
237
239
|
|