lenso-capability-http-endpoint 0.2.5

Portable HTTP Endpoint Capability contract for Lenso backend Modules.
Documentation
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "required": ["route_id", "request_id", "method", "path", "path_parameters", "headers", "body"],
  "properties": {
    "route_id": {"type": "string", "minLength": 1},
    "request_id": {"type": "string", "minLength": 1, "maxLength": 128},
    "method": {"type": "string", "minLength": 1, "maxLength": 32},
    "path": {"type": "string", "pattern": "^/"},
    "query": {"type": "string"},
    "path_parameters": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "value"],
        "properties": {
          "name": {"type": "string", "minLength": 1},
          "value": {"type": "string"}
        },
        "additionalProperties": false
      }
    },
    "credential": {
      "type": "object",
      "required": ["scheme", "value"],
      "properties": {
        "scheme": {"type": "string", "minLength": 1, "maxLength": 32},
        "value": {"type": "string", "minLength": 1}
      },
      "additionalProperties": false
    },
    "headers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "value"],
        "properties": {
          "name": {"type": "string", "minLength": 1},
          "value": {"type": "string"}
        },
        "additionalProperties": false
      }
    },
    "body": {"type": "string", "format": "byte"}
  },
  "additionalProperties": false
}