Skip to content

Available now

story-context.type ​

Refused 400 schema

The wrong JSON type, in the story-context payload schema.

OutcomeRefused, 400
Sourceschema: The SOM 1.0 JSON Schema says no. The message is not valid SOM 1.0.
Checked atSOM envelope, version and payload (see the order of checks)
Applies tomessages whose payload is checked against the story-context schema

What it means ​

The message breaks the story-context payload schema. The wrong JSON type. Typical cause: null where a string is required, a number sent as a string.

How to fix it ​

Send the type the schema asks for. path in the violation points at the field.


Branch on the rule id, never on the violation's message text. All rules: rule catalogue.

SOM is an open standard maintained by the SOM working group. This service is not endorsed by it.