"nullable": true
is not respected for empty objects.
#1940
Labels
"nullable": true
is not respected for empty objects.
#1940
Description
When a JSON API spec has
"nullable": true
for an empty object, the resulting TS type does not includenull
.Reproduction
Copy the following into a JSON API spec:
The generated TS types are
Expected result
NullableEmptyObject
should be typed asRecord<string, never> | null
.Checklist
npx @redocly/cli@latest lint
)I could open a PR in a few weeks, but I'm not able to do so right now!
The text was updated successfully, but these errors were encountered: