Skip to content

Commit

Permalink
#451 - remove delegate copy
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidast committed Aug 8, 2024
1 parent 77a3544 commit 5256fe4
Showing 1 changed file with 41 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "object",
"properties": {
"methods": {
"description": "Restricts the HTTP methods concerned by this rule (`GET`, `PUT`, `POST`, `DELETE`). When absent, all methods are concerned.",
"description": "Restricts the HTTP methods concerned by this rule (`GET`, `PUT`, `POST`, `DELETE`).\nWhen absent, all methods are concerned.",
"type": "array",
"items": {
"type": "string"
Expand All @@ -19,56 +19,55 @@
"type": "string"
},
"pattern": {
"description": "Pattern for grouping the incoming URI",
"description": "Pattern for grouping the incoming uri",
"type": "string"
},
"requests": {
"type": "array",
"items": { "$ref": "#/definitions/Request" }
"items": {"$ref": "#/definitions/Request"}
}
},
"additionalProperties": false,
"definitions": {
"HeaderFunction": {
"properties": {
"header": {
"description": "The request-header name to manipulate (set, remove or conditional set)",
"type": "string",
"minLength": 1
},
"value": {
"description": "The value to be set. Null and empty string means 'remove the header'. Value can contain other header names between single angular brackets which resolves to their values accordingly",
"type": [
"null",
"string"
]
"properties": {
"header": {
"description": "the request-header name to manipulate (set, remove or conditional set)",
"type": "string",
"minLength": 1
},
"value": {
"description": "the value to be set. null and empty string means 'remove the header'. value can contain other header names between single angular brackets which resolves to their values accordingly",
"type": [
"null",
"string"
]
},
"mode": {
"description": "define a condition-mode. 'complete' sets the header value only if this header is not yet present. 'overwrite' sets the header value only if the header is already present. Ignored if value is null or empty string",
"type": "string",
"enum": [
"complete",
"override"
]
}
},
"mode": {
"description": "Define a condition-mode. 'complete' sets the header value only if this header is not yet present. 'overwrite' sets the header value only if the header is already present. Ignored if value is null or empty string",
"type": "string",
"enum": [
"complete",
"override"
]
}
},
"required": [
"header",
"value"
]
"required": [
"header",
"value"
]
},
"Request": {
"oneOf": [
{ "required": ["payload"] },
{ "required": ["transform"] },
{ "required": ["transformWithMetadata"] },
{ "required": ["copy"] }
{ "required": ["transformWithMetadata"] }
],
"anyOf": [
{
"oneOf": [
{ "required": ["dynamicHeaders"] },
{ "required": ["headers"] }
{"required": ["dynamicHeaders"]},
{"required": ["headers"]}
]
},
{
Expand All @@ -92,28 +91,24 @@
]
},
"payload": {
"description": "The payload to send in the request's body",
"description": "The payload to send in requests body",
"type": "object"
},
"transform": {
"description": "The JOLT spec definition to transform the payload",
"description": "The jolt spec definition to transform the payload",
"type": "array"
},
"transformWithMetadata": {
"description": "The JOLT spec definition to transform the payload and additional metadata",
"description": "The jolt spec definition to transform the payload and additional metadata",
"type": "array"
},
"copy": {
"description": "Indicates that the original payload should be copied to the new destination",
"type": "boolean"
},
"dynamicHeaders": {
"description": "Manipulate (set / remove / replace) request headers using HeaderFunctions - option to reference other header values",
"type": "array",
"items": {
"$ref": "#/definitions/HeaderFunction"
}
},
"dynamicHeaders": {
"description": "Manipulate (set / remove / replace) request headers using HeaderFunctions - option to reference other header vales",
"type": "array",
"items": {
"$ref": "#/definitions/HeaderFunction"
}
},
"headers": {
"description": "Headers to send with the request",
"type": "array",
Expand Down

0 comments on commit 5256fe4

Please sign in to comment.