parse_schema()
#
parse_schema()
validates and processes a JSON schema definition, ensuring its structure and integrity.
Prototype
int parse_schema(
json_t *schema // not owned
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A JSON object representing the schema definition. The caller retains ownership. |
Return Value
Returns 0
on success, or a negative error code if the schema is invalid.
Notes
This function does not modify the input schema
and does not take ownership of it.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples