jina.jaml.parsers

jina.jaml.parsers.get_parser(cls, version)[source]
Parameters
  • cls (Type[JAMLCompatible]) – the target class to parse

  • version (Optional[str]) – yaml version number in “MAJOR[.MINOR]” format

Return type

VersionedYAMLParser

Returns

parser given the YAML version

jina.jaml.parsers.get_supported_versions(cls)[source]

List all supported versions

Parameters

cls – the class to check

Return type

List[str]

Returns

supported versions sorted alphabetically