@travetto/openapi 5.0.19 → 5.0.20
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 +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/openapi",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.20",
|
|
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": "^5.0.
|
|
30
|
-
"@travetto/rest": "^5.0.
|
|
31
|
-
"@travetto/schema": "^5.0.
|
|
29
|
+
"@travetto/config": "^5.0.15",
|
|
30
|
+
"@travetto/rest": "^5.0.19",
|
|
31
|
+
"@travetto/schema": "^5.0.15",
|
|
32
32
|
"openapi3-ts": "^4.4.0",
|
|
33
33
|
"yaml": "^2.6.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@travetto/cli": "^5.0.
|
|
36
|
+
"@travetto/cli": "^5.0.18"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@travetto/cli": {
|
package/src/spec-generate.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
import { EndpointConfig, ControllerConfig, ParamConfig, EndpointIOType, ControllerVisitor } from '@travetto/rest';
|
|
8
8
|
import { Class, describeFunction } from '@travetto/runtime';
|
|
9
9
|
import { SchemaRegistry, FieldConfig, ClassConfig, SchemaNameResolver } from '@travetto/schema';
|
|
10
|
-
import {
|
|
10
|
+
import { AllViewSymbol } from '@travetto/schema/src/internal/types';
|
|
11
11
|
|
|
12
12
|
import { ApiSpecConfig } from './config';
|
|
13
13
|
|
|
@@ -206,7 +206,7 @@ export class OpenapiVisitor implements ControllerVisitor<GeneratedSpec> {
|
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
const properties: Record<string, SchemaObject> = {};
|
|
209
|
-
const def = config.views[
|
|
209
|
+
const def = config.views[AllViewSymbol];
|
|
210
210
|
const required: string[] = [];
|
|
211
211
|
|
|
212
212
|
for (const fieldName of def.fields) {
|