Skip to content

Commit

Permalink
fix(@nestjs/terminus): generate the correct openapi health schema
Browse files Browse the repository at this point in the history
When generating the openapi documents 'status' is now marked as required then when generating a typescript client using openapi-generator it translates the healthcheck response to a correct interface. Otherwise the TS2411 compilation error appears.
  • Loading branch information
Daniel Romero committed Feb 2, 2024
1 parent fd96697 commit 01ce13b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/health-check/health-check.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const healthIndicatorSchema = (example: HealthIndicatorResult) => ({
example,
additionalProperties: {
type: 'object',
required: ['status'],
properties: {
status: {
type: 'string',
Expand Down

0 comments on commit 01ce13b

Please sign in to comment.