Skip to content

Cannot use YAML anchors and references in config files #646

@birnbuazn

Description

@birnbuazn

Seems like you are using Jackson Dataformats YAML under the hood, which unfortunately doesn't handle anchors and references in YAML files nicely:

FasterXML/jackson-dataformats-text#98

Which is a pain, because I want to reuse regex patterns in my config file, which currently does not work:

    requestBody:
      allOf:
        - xPath: "/soap:Envelope/soap:Header/wsse:Security/wsu:Timestamp/wsu:Created"
          operator: Matches
          value: &Timestamp ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$
        - xPath: "/soap:Envelope/soap:Header/wsse:Security/wsu:Timestamp/wsu:Expires"
          operator: Matches
          value: *Timestamp

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions