openapi: 3.0.0 info: title: test description: test case for nullable enum value version: "1.0" contact: name: me servers: - url: https://test.ops/v1 description: Main API server tags: - name: test paths: /event/create: post: operationId: createEvent summary: Create a new event description: todo tags: - test requestBody: content: application/json: schema: type: object properties: event_type: type: string result: type: string nullable: true enum: - OK - FAILED - null example: event_type: AccountBlocked result: null responses: '200': description: ok '500': description: not ok