Validates a primitive value.
Value to validate.
Primitive type keyword.
Whether the value matches the type.
Validates a primitive value.