jina.jaml.parsers.flow.legacy

class jina.jaml.parsers.flow.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[BaseFlow]) – target class type to parse into, must be a JAMLCompatible type

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

Return type

BaseFlow

dump(data)[source]

Return the dictionary given a versioned flow object

Parameters

data (BaseFlow) – versioned flow object

Return type

Dict