I have a logic app as API (via APIM) with a HTTP Request trigger for posts. In APIM I have created a schema definition for requests
Simplified example:
{
"properties": {
"id": {
"type": "string"
},
"email": {
"type": "string"
}
},
"required": [
"id",
"email"
],
"type": "object"
}
However, when I test, the post isn't validated. I can input numbers instead of strings or send a completely empty message.
If I set up the same schema inside the logic app trigger the validation is fine but I would prefer to keep the definition in APIM so I won't have to manage schemas for both logic app and APIM for front end.
I think this has worked before, I remember having a similar logic app API where schema validation in APIM was possible.
Is there something I'm missing?

