:py:mod:`buildtest.schemas.utils` ================================= .. py:module:: buildtest.schemas.utils .. autoapi-nested-parse:: Utility and helper functions for schemas. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: buildtest.schemas.utils.load_schema buildtest.schemas.utils.load_recipe Attributes ~~~~~~~~~~ .. autoapisummary:: buildtest.schemas.utils.here .. py:data:: here .. py:function:: load_schema(path) Load a json schema file, the file extension must be **.schema.json** :param path: Path to schema file :type path: str :returns: Return loaded schema as JSON document :rtype: dict :raises SystemExit: If filepath doesn't exist or schema file doesn't ends in **.schema.json** .. py:function:: load_recipe(path) Load a yaml recipe file. The file must be in **.yml** extension for buildtest to load. :param path: The full path to buildspec recipe :type path: str :returns: a dict containing buildspec that is defined in YAML format :rtype: dict :raises SystemExit: If filepath doesn't exist or doesn't end in **.yml** extension