Skip to content

parse_load_schema flag to not parse the schema #2150

@AugustijnVrolijk

Description

@AugustijnVrolijk

Your idea

Hi All,

I've noticed that the schema returned by parse_load_schema is partially parsed. I've observed this with the expression_tests section where simple expressions such as "null", "false", etc... are interpreted into their pythonic counterpart.
This makes later interpretation more annoying as checks have to be introduced to see if an expression is a raw string or already parsed into something pythonic.
Is this something not changeable in yaml.safe_load()? (found in parse_load_schema() -> Namesapce.from_directory() -> _read_yaml_dir())
Possibly changing yaml.safe_load() to yaml.compose_all() ?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions