primitive

This value as a scalar.

The strict half of the pair, for a consumer that minted the problem type and wants a shape mismatch to surface. A consumer reading someone else's problem type should prefer primitiveOrNull, since §3 treats a wrong-typed member as absent instead of failing the whole document.

See also

Throws

if this value is an array, an object or ProblemNull.