Skip to content

Commit

Permalink
#606 - Draft commit to analyze implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidast committed Aug 20, 2024
1 parent 5c67bb0 commit b0b6633
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions gateleen-hook/src/main/resources/gateleen_hooking_schema_hook
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,44 @@
},
"useOriginalPayload": {
"type": "boolean",
"description": "If true, the original payload will be forwarded to the destination without transformation.",
"description": "If true, the original payload will be forwarded without transformation.",
"default": false
},
"transform": {
"type": "object",
"description": "Transformation configuration for the payload if useOriginalPayload is false.",
"properties": {
// Add necessary transformation properties here
}
"type": {
"type": "string",
"enum": ["json", "xml", "text"],
"description": "The type of transformation to apply (e.g., converting to JSON, XML, or text)."
},
"operations": {
"type": "array",
"description": "List of transformation operations to apply to the payload.",
"items": {
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": ["replace", "remove", "add"],
"description": "The operation to perform on the payload (e.g., replace, remove, add)."
},
"path": {
"type": "string",
"description": "The JSON path or XPath to the element to be transformed."
},
"value": {
"type": ["string", "number", "boolean", "null"],
"description": "The value to be used in the transformation operation."
}
},
"required": ["operation", "path"],
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"headers": {
"type": "array",
Expand Down

0 comments on commit b0b6633

Please sign in to comment.