{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-operations-cisco-crosswork-optimization-engine-sr-policy-operations-sr-policy-dryrun-post-output-schema.json",
  "title": "operations_cisco-crosswork-optimization-engine-sr-policy-operations_sr-policy-dryrun-post-output",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-operations-api-openapi.yml#/components/schemas/operations_cisco-crosswork-optimization-engine-sr-policy-operations_sr-policy-dryrun-post-output",
  "type": "object",
  "properties": {
    "cisco-crosswork-optimization-engine-sr-policy-operations:output": {
      "type": "object",
      "properties": {
        "state": {
          "description": "The result for the policy preview operation (leaf)",
          "type": "string",
          "format": "enumeration",
          "default": "success",
          "enum": [
            "success",
            "failure",
            "degraded"
          ]
        },
        "message": {
          "description": "The details of state above, for failure or degraded (leaf)",
          "type": "string",
          "format": "string"
        },
        "igp-route": {
          "type": "array",
          "description": "(list)",
          "items": {
            "type": "object",
            "properties": {
              "node": {
                "description": "The hostname of the source-node for the interface (leaf)",
                "type": "string",
                "format": "string"
              },
              "interface": {
                "description": "The name of the interface (leaf)",
                "type": "string",
                "format": "string"
              }
            }
          }
        },
        "segment-list-hops": {
          "type": "array",
          "description": "(list)",
          "items": {
            "type": "object",
            "properties": {
              "step": {
                "description": "The representation of the hop order in the path (leaf)",
                "type": "integer",
                "format": "uint32"
              },
              "sid": {
                "description": "The segment identifier for the hop (leaf)",
                "type": "integer",
                "format": "uint32"
              },
              "ip-address": {
                "description": "The IP address of the hop (leaf)",
                "type": "string",
                "format": "union"
              },
              "type": {
                "description": "The type of the hop (leaf)",
                "type": "string",
                "format": "enumeration",
                "default": "node-ipv4",
                "enum": [
                  "node-ipv4",
                  "adjacency-ipv4",
                  "node-ipv6",
                  "adjacency-ipv6",
                  "unknown"
                ]
              }
            }
          }
        }
      }
    }
  }
}