webroute
webroute copied to clipboard
OpenAPI: Some nullable types are appearing incorrectly in the open api schema
Example:
application/json:
schema:
anyOf:
- type: object
properties:
draftId:
type: string
title:
type:
- string
- 'null'
Causes error:
should be equal to one of the allowed values
allowedValues: array, boolean, integer, number, object, string
Need to migrate to @anatine/zod-openapi instead