{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Reflag cli schema",
  "type": "object",
  "properties": {
    "baseUrl": {
      "type": "string",
      "pattern": "^https?://.*",
      "description": "Base URL for the API. Defaults to https://app.reflag.com."
    },
    "apiUrl": {
      "type": "string",
      "pattern": "^https?://.*",
      "description": "API URL for the API. Defaults to https://app.reflag.com/api."
    },
    "appId": {
      "type": "string",
      "minLength": 14,
      "maxLength": 14,
      "description": "Mandatory ID for the Reflag app. You can find it by calling reflag apps list."
    },
    "typesOutput": {
      "type": "array",
      "description": "List of paths to output the types. The path is relative to the current working directory.",
      "items": {
        "type": "object",
        "properties": {
          "path": { "type": "string" },
          "format": { "type": "string", "enum": ["react", "node"] }
        },
        "required": ["path"]
      }
    }
  },
  "required": ["appId"]
}
