Source code for ska_telmodel.pss.schema

"""PSS schema definitions."""

from .._common import (
    TMSchema,
    lookup_schema,
)
from . import schemas


[docs] def get_pss_configure_schema(version: str, strict: int) -> TMSchema: """Method that aims to get the PSS configure schema. :param version: Interface version URI :param strict: Strict mode. If true, refuse even harmless schema violations (like extra keys). DO NOT USE FOR INPUT VALIDATION! :return: The PSS configure JSON Schema. """ return lookup_schema(schemas, version, strict, "get_pss_configure_schema")
[docs] def get_pss_cheetah_configure_schema(version: str, strict: int) -> TMSchema: """Method that aims to get the PSS Cheetah configure schema. :param version: Interface version URI :param strict: Strict mode. If true, refuse even harmless schema violations (like extra keys). DO NOT USE FOR INPUT VALIDATION! :return: The Cheetah configure JSON Schema. """ return lookup_schema( schemas, version, strict, "get_pss_cheetah_configure_schema" )