Closed hyeonss0417 closed 9 months ago
fix the bug where an empty responses object causes an error
ex)
export type BookApiSpec = Tspec.DefineApiSpec<{ paths: { '/': { get: { responses: { 200: never }, }, }, } }>;
Error: Invalid 'responses' in {"additionalProperties":false,"type":"object","properties":{"responses":{"type":"object","additionalProperties":false},"handler":{},"method":{"type":"string","enum":["get"]},"url":{"type":"string","enum":["/"]},"security":{},"tags":{"type":"array","minItems":0,"maxItems":0}},"required":["handler","method","responses","security","tags","url"]}; value: {"type":"object","additionalProperties":false}
fix the bug where an empty responses object causes an error
ex)
Schema
Error
Error: Invalid 'responses' in {"additionalProperties":false,"type":"object","properties":{"responses":{"type":"object","additionalProperties":false},"handler":{},"method":{"type":"string","enum":["get"]},"url":{"type":"string","enum":["/"]},"security":{},"tags":{"type":"array","minItems":0,"maxItems":0}},"required":["handler","method","responses","security","tags","url"]}; value: {"type":"object","additionalProperties":false}