buildtest.schemas.utils

Utility and helper functions for schemas.

Module Contents

Functions

get_schema_fullpath(schema_file, name=None)

Return the full path of a schema file (expected to be under schemas

load_recipe(path)

Load a yaml recipe file. The file must be in .yml extension

load_schema(path)

Load a json schema file, the file extension must be ‘.schema.json’

buildtest.schemas.utils.get_schema_fullpath(schema_file, name=None)

Return the full path of a schema file (expected to be under schemas

Parameters:

schema_file: the path to the schema file. name: the schema type. If not provided, derived from filename.

buildtest.schemas.utils.here
buildtest.schemas.utils.load_recipe(path)

Load a yaml recipe file. The file must be in .yml extension for buildtest to load.

Parameters:

path: the path to the recipe file.

buildtest.schemas.utils.load_schema(path)

Load a json schema file, the file extension must be ‘.schema.json’

Parameters:

path: the path to the schema file.