Skip to main content

JSON_PARAM

Constant JSON_PARAM 

Source
pub const JSON_PARAM: &str = "json/jsonb";
Expand description

How a function’s argument list reads in an error message.

PostgREST words the no-argument case differently rather than printing an empty list, and the messages are matched verbatim by clients. How the message spells the type of a single unnamed JSON parameter.

It is the one media type that can also carry named arguments, so it reads as an alternative rather than as the only thing looked for.