Hi, We're developing a custom operation using a b...
# dev
m
Hi, We're developing a custom operation using a bot and have some questions you hopefully can help answer. 1. Does the operation definition validate parameters sent to an operation? E.g. our operation definition contains a parameter entry:
Copy code
json
"parameter": [
    {
      "use": "in",
      "name": "start",
      "min": 1,
      "max": "1",
      "type": "dateTime"
    }
]
But we can pass anything when calling the operation and the bot will receive it. Is this intended behaviour? 2. If the bot throws an error (
throw new Error()
) when calling the operation, we receive an internal server error as response.
Copy code
POST /Resource/$my-operation
Returns:
Copy code
HTTP/1.1 500 Internal Server Error
With body:
Copy code
{
  "msg": "Internal Server Error"
}
Should we not expect to receive an
OperationOutcome
instead?
53 Views