原书出处
Designing APIs with Swagger and OpenAPI
05 Describing API responses 5.7 Describing the GET /reviews response
In OpenAPI, multiple types like this are not supported (as of OpenAPI 3.0.x, at least). But to make allowance for the very common use case of having a schema be some value or null, the spec has the nullable keyword.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Designing APIs with Swagger and OpenAPI/_epub-src/OEBPS/Text/ch05.htm
EPUB SHA-256:b429095d92e98a7ef17df001e65a97cc8b58fbe9dde8dd4f4731c613ff762c25