lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.33k stars 481 forks source link

Nullable $refs should include "type": "object" #1550

Closed gwprice115 closed 3 months ago

gwprice115 commented 5 months ago

Sorting

Expected Behavior

Nullable $refs should include "type": "object"

https://github.com/openapistack/openapi-backend/issues/228 https://github.com/ajv-validator/ajv/issues/1882#issuecomment-1030159275

Current Behavior

For better compatibility with consumers, references should include "type": "object" when nullable is included (see referenced issues)

Possible Solution

Steps to Reproduce

      1. 4.

Context (Environment)

Version of the library: Version of NodeJS:

Detailed Description

Breaking change?

github-actions[bot] commented 3 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days