JSONSchemaEditor.SchemaUtils (json_schema_editor v0.9.9)

View Source

Utility functions for working with JSON Schemas.

Summary

Functions

cast_type(value, arg2)

cast_value(field, value)

clean_all_custom_properties(schema)

Recursively removes all properties starting with "x-" from the schema.

clean_custom_property(schema, property_name)

Recursively removes a specific custom property (e.g. "x-custom") from the schema.

generate_unique_key(existing_map, base_name, counter \\ 1)

get_in_path(data, path)

get_type(v)

put_in_path(data, path, value)

update_in_path(data, path, func)