Skip to content

Symfony YAML does not parse all YAML #21

Open

Description

@cebe

While trying to add more tests for more specs from these sources:

I found that symfony YAML fails on a lot of these.
We either need an alternative YAML parser or improve symfony YAML to not fail.

Activity

  1. cebe commented on Nov 26, 2019

    @cebe
    OwnerAuthor
  2. simPod commented on Apr 7, 2021

    @simPod
    Contributor

    I've encountered the same issue. The problem is that it parses only arrays while getSerializableData() return stdClasses.

  3. simPod commented on Apr 7, 2021

    @simPod
    Contributor

    I'm using typical trick from js world:

    Yaml::dump(
        json_decode(json_encode($openApiSpec->create()->getSerializableData()), true),
        flags: Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE
    )
  4. cebe commented on Nov 14, 2024

    @cebe
    OwnerAuthor

    Consider allowing ext-yaml as an alternative.

    #170 is a duplicate of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions