{
  "openapi": "3.1.0",
  "info": {
    "title": "JSDaj support",
    "version": "0.2.0"
  },
  "servers": [
    {
      "url": "https://jsdaj.com",
      "description": "JSDaj support endpoint"
    }
  ],
  "paths": {
    "/support/api/v1/requests": {
      "post": {
        "operationId": "submitSupportRequest",
        "security": [],
        "description": "Anonymous redacted feedback, max 65536 bytes. Permissive fields; never authority. Fixed acknowledgement does not promise storage.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "product": {
                        "description": "Product slug, for example compare or raster-relay."
                      },
                      "category": {
                        "description": "bug, complaint, suggestion or help."
                      },
                      "message": {
                        "description": "Redacted report or question; never credentials or production datasets."
                      },
                      "reply_email": {
                        "description": "Optional address for a relevant support reply."
                      },
                      "version": {
                        "description": "Optional product version."
                      },
                      "operation": {
                        "description": "Optional affected workflow."
                      }
                    },
                    "additionalProperties": true
                  },
                  {
                    "type": [
                      "array",
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Neutral acknowledgement",
            "content": {
              "application/json": {
                "schema": {
                  "const": {
                    "ok": true,
                    "message": "Thank you for your feedback. Changes require owner review."
                  }
                }
              }
            }
          },
          "400": {
            "description": "INVALID_JSON"
          },
          "403": {
            "description": "INVALID_HOST or INVALID_ORIGIN"
          },
          "404": {
            "description": "NOT_FOUND"
          },
          "405": {
            "description": "METHOD_NOT_ALLOWED"
          },
          "413": {
            "description": "BODY_LIMIT"
          },
          "415": {
            "description": "UNSUPPORTED_MEDIA_TYPE or UNSUPPORTED_ENCODING"
          },
          "429": {
            "description": "RATE_LIMITED"
          },
          "500": {
            "description": "TRANSPORT_FAILURE"
          }
        }
      }
    }
  }
}
