{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-router-fields-response-schema.json",
  "title": "RouterFieldsResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-router-settings-api-openapi.yml#/components/schemas/RouterFieldsResponse",
  "properties": {
    "fields": {
      "items": {
        "$ref": "#/$defs/RouterSettingsField"
      },
      "type": "array",
      "title": "Fields",
      "description": "List of all configurable router settings with metadata (without field values)"
    },
    "routing_strategy_descriptions": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Routing Strategy Descriptions",
      "description": "Descriptions for each routing strategy option"
    }
  },
  "type": "object",
  "required": [
    "fields",
    "routing_strategy_descriptions"
  ],
  "$defs": {
    "RouterSettingsField": {
      "properties": {
        "field_name": {
          "type": "string",
          "title": "Field Name"
        },
        "field_type": {
          "type": "string",
          "title": "Field Type"
        },
        "field_value": {
          "title": "Field Value"
        },
        "field_description": {
          "type": "string",
          "title": "Field Description"
        },
        "field_default": {
          "title": "Field Default"
        },
        "options": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Options"
        },
        "ui_field_name": {
          "type": "string",
          "title": "Ui Field Name"
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Link"
        }
      },
      "type": "object",
      "required": [
        "field_name",
        "field_type",
        "field_value",
        "field_description",
        "ui_field_name"
      ],
      "title": "RouterSettingsField"
    }
  }
}