Method Standards.JSON5.Validator()->has_schema_boolean()


Method has_schema_boolean

private bool has_schema_boolean(mapping(string:mixed) schema, string property)

Description

Test if the schema has the specified property and the value of the property is a boolean (with values Standards.JSON5.true or Standards.JSON5.false).

Throws

Throws an error if the value of the property is no boolean.

Returns

1 if the schema has the specified property.