{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.bullpen.fi/reference/schemas/config.show.schema.json",
  "title": "bullpen config show JSON output",
  "description": "Initial stable schema for the documented config show support envelope.",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "env",
    "usergate_url",
    "trade_server_url",
    "polygon_rpc_url",
    "output_format",
    "credential_store",
    "check_for_updates",
    "experimental"
  ],
  "properties": {
    "env": {
      "type": "string",
      "minLength": 1
    },
    "usergate_url": {
      "$ref": "#/$defs/http_url"
    },
    "trade_server_url": {
      "$ref": "#/$defs/http_url"
    },
    "polygon_rpc_url": {
      "$ref": "#/$defs/http_url"
    },
    "output_format": {
      "enum": [
        "table",
        "json"
      ]
    },
    "credential_store": {
      "type": "string",
      "minLength": 1
    },
    "check_for_updates": {
      "type": "boolean"
    },
    "experimental": {
      "type": [
        "object",
        "null"
      ]
    }
  },
  "$defs": {
    "http_url": {
      "type": "string",
      "pattern": "^https?://[^\\s]+$"
    }
  }
}
