@travetto/openapi 3.1.15 → 3.1.16
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 +1 -1
- package/src/controller.ts +2 -2
package/package.json
CHANGED
package/src/controller.ts
CHANGED
|
@@ -16,12 +16,12 @@ export class OpenApiController {
|
|
|
16
16
|
|
|
17
17
|
@Get('openapi.json')
|
|
18
18
|
async getSpec(): Promise<object> {
|
|
19
|
-
return this.service.
|
|
19
|
+
return this.service.getSpec(); // Force output to be simple
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@Get('openapi.yaml')
|
|
23
23
|
@SetHeaders({ 'Content-Type': 'text/vnd.yaml' })
|
|
24
24
|
async getYmlSpec(): Promise<string> {
|
|
25
|
-
return YamlUtil.serialize(this.service.
|
|
25
|
+
return YamlUtil.serialize(this.service.getSpec()); // Force output to be simple
|
|
26
26
|
}
|
|
27
27
|
}
|