{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ProviderCreate",
  "title": "ProviderCreate",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "description": "The name of the provider."
    },
    "provider_type": {
      "$ref": "#/components/schemas/ProviderType",
      "description": "The type of the provider."
    },
    "api_key": {
      "type": "string",
      "title": "Api Key",
      "description": "API key or secret key used for requests to the provider."
    },
    "access_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Access Key",
      "description": "Access key used for requests to the provider."
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Region",
      "description": "Region used for requests to the provider."
    },
    "base_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Base Url",
      "description": "Base URL used for requests to the provider."
    },
    "api_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Version",
      "description": "API version used for requests to the provider."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name",
    "provider_type",
    "api_key"
  ]
}