﻿{
  "openapi": "3.1.1",
  "info": {
    "title": "MinimalAppWithNullableEnums",
    "version": "1.0"
  },
  "paths": {
    "/weatherforecast": {
      "get": {
        "tags": [
          "MinimalAppWithNullableEnums"
        ],
        "operationId": "GetWeatherForecast",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Parent"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Child": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Parent": {
        "type": "object",
        "properties": {
          "child": {
            "type": "null",
            "allOf": [
              {
                "$ref": "#/components/schemas/Child"
              }
            ]
          },
          "category": {
            "enum": [
              0,
              1,
              2
            ],
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "MinimalAppWithNullableEnums"
    }
  ]
}