rapi-doc / RapiDoc

RapiDoc -WebComponent for OpenAPI Spec
https://rapidocweb.com
MIT License
1.71k stars 285 forks source link

Distinguish nullable arrays when schema-style is tree #919

Closed HansAarneLiblik closed 1 year ago

HansAarneLiblik commented 1 year ago

Follow-up to https://github.com/rapi-doc/RapiDoc/pull/889

Also display null|.. for nullable arrays (of arrays / objects)

Can't display null|... for primitives, as that is handled very differently and nullable is not available when rendering them

Previously:

image

Current:

image

HansAarneLiblik commented 1 year ago

This won't work without some changes in the generateTree signature. Arrays are rendered, when handling children, and we don't have array nullable values on that level anymore