{
  "openapi": "3.1.0",
  "info": {
    "title": "Model facts host",
    "version": "0.1.0",
    "description": "Static hosting for facts and benchmarks documents, so an Arazzo workflow can read facts that no provider API serves. Any static web host fits."
  },
  "servers": [
    {
      "url": "https://0xcopy.github.io/models-metadata/examples"
    }
  ],
  "paths": {
    "/facts/{document}": {
      "get": {
        "operationId": "getFacts",
        "summary": "Read one facts document",
        "parameters": [
          {
            "name": "document",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+\\.(json|ya?ml)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A facts document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "../schemas/facts.v0.json"
                }
              },
              "application/yaml": {
                "schema": {
                  "$ref": "../schemas/facts.v0.json"
                }
              }
            }
          }
        }
      }
    },
    "/benchmarks/{document}": {
      "get": {
        "operationId": "getBenchmarks",
        "summary": "Read one benchmarks document",
        "parameters": [
          {
            "name": "document",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+\\.(json|ya?ml)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A benchmarks document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "../schemas/benchmarks.v0.json"
                }
              },
              "application/yaml": {
                "schema": {
                  "$ref": "../schemas/benchmarks.v0.json"
                }
              }
            }
          }
        }
      }
    }
  }
}
