Appearance
envelope.type
Refused 400 schemaThe message, or a field of its envelope, has the wrong JSON type.
| Outcome | Refused, 400 |
| Source | schema: The SOM 1.0 JSON Schema says no. The message is not valid SOM 1.0. |
| Checked at | SOM envelope, version and payload (see the order of checks) |
What it means
Either the body is JSON but not an object (an array, a string, a number), or a field of the envelope has the wrong JSON type, for example a number where the schema wants a string. path says which.
How to fix it
Send one JSON object per request, and give the field at path the type the SOM envelope schema asks for.
Related rules
Branch on the rule id, never on the violation's message text. All rules: rule catalogue.