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

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

Parameters
  • schema_file (str) – the path to the schema file.

  • name (str, optional) – 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 (str) – 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 (str) – the path to the schema file.