Json schema generator

Json schema generator#

esgvoc.apps.jsg.json_schema_generator.generate_json_schema(project_id: str) dict[source]#

Generate json schema for the given project.

Parameters:

project_id (str) – The id of the given project.

Returns:

The root node of a json schema.

Return type:

dict

Raises:
esgvoc.apps.jsg.json_schema_generator.pretty_print_json_node(obj: dict) str[source]#

Serialize a dictionary into json format.

Parameters:

obj (dict) – The dictionary.

Returns:

a string that represents the dictionary in json format.

Return type:

str