rulesets_RewriteUriPart

APIs.ioEngineeringPlatform
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-rulesets-rewriteuripart-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/rulesets_RewriteUriPart",
  "title": "rulesets_RewriteUriPart",
  "oneOf": [
    {
      "properties": {
        "value": {
          "description": "Predefined replacement value.",
          "example": "/images",
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "title": "Static value",
      "type": "object"
    },
    {
      "properties": {
        "expression": {
          "description": "Expression to evaluate for the replacement value.",
          "example": "regex_replace(http.request.uri.path, \"/bar$\", \"/baz\")",
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "expression"
      ],
      "title": "Dynamic value",
      "type": "object"
    }
  ]
}