jina.jaml.parsers.driver.legacy

class jina.jaml.parsers.driver.legacy.LegacyParser[source]

Bases: jina.jaml.parsers.base.VersionedYAMLParser

version = 'legacy'
parse(cls, data)[source]

Return the Flow YAML parser given the syntax version number

Parameters
  • cls (Type[BaseDriver]) – target class type to parse into, must be a JAMLCompatible type

  • data (Dict) – flow yaml file loaded as python dict

Return type

BaseDriver

dump(data)[source]

Return the dictionary given a versioned flow object

Parameters

data (BaseDriver) – versioned flow object

Return type

Dict