﻿{
  "openapi": "3.0.4",
  "info": {
    "title": "Native AoT API V1",
    "description": "A sample API for testing Swashbuckle with native AoT",
    "termsOfService": "http://tempuri.org/terms",
    "version": "v1"
  },
  "paths": {
    "/todos": {
      "get": {
        "tags": [
          "WebApi.Aot"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Todo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/todos/{id}": {
      "get": {
        "tags": [
          "WebApi.Aot"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Todo": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "dueBy": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "isComplete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "WebApi.Aot"
    }
  ]
}