{
  "$schema": "http://json-schema.org/schema",
  "$id": "open-api",
  "type": "object",
  "description": "",
  "properties": {},
  "oneOf": [
    {
      "properties": {
        "path": {
          "type": "string",
          "description": "The path to the openapi config",
          "format": "path"
        },
        "project": {
          "type": "string",
          "description": "The target project where the data sources and remote methods should be generated.",
          "default": "open-api"
        },
        "directory": {
          "type": "string",
          "description": "A directory where the library is placed."
        },
        "prefix": {
          "type": "string"
        },
        "transport": {
          "type": "string",
          "enum": [
            "amplify"
          ]
        },
        "export": {
          "type": "boolean",
          "description": "If true the index.ts of the select project will replaced with export statement for each generate file",
          "default": false
        },
        "inline": {
          "type": "boolean",
          "default": true
        },
        "skipRemoteMethod": {
          "type": "boolean",
          "default": false
        },
        "skipDataSource": {
          "type": "boolean",
          "default": false
        },
        "skipProvider": {
          "type": "boolean",
          "default": false
        },
        "skipDirectives": {
          "type": "boolean",
          "default": false
        },
        "skipCommand": {
          "type": "boolean",
          "default": false
        },
        "serverId": {
          "type": "string"
        }
      },
      "required": [
        "path"
      ]
    },
    {
      "properties": {
        "url": {
          "type": "string",
          "description": "The url to the openapi config"
        },
        "project": {
          "type": "string",
          "description": "The target project where the data sources and remote methods should be generated.",
          "default": "open-api"
        },
        "directory": {
          "type": "string",
          "description": "A directory where the library is placed."
        },
        "prefix": {
          "type": "string"
        },
        "transport": {
          "type": "string",
          "enum": [
            "amplify"
          ]
        },
        "export": {
          "type": "boolean",
          "description": "If true the index.ts of the select project will replaced with export statement for each generate file",
          "default": false
        },
        "skipCommand": {
          "type": "boolean",
          "default": false
        },
        "skipDataSource": {
          "type": "boolean",
          "default": false
        },
        "inline": {
          "type": "boolean",
          "default": true
        },
        "skipRemoteMethod": {
          "type": "boolean",
          "default": false
        },
        "skipProvider": {
          "type": "boolean",
          "default": false
        },
        "skipDirectives": {
          "type": "boolean",
          "default": false
        },
        "serverId": {
          "type": "string"
        }
      },
      "required": [
        "url"
      ]
    }
  ]
}
