Skip to content

YAML objects named "components" don't resolve #9

Description

@Sarah-MultiSafepay

If I create a YAML object named "components" in my input.yaml file, any $ref, $inline or $merge commands don't resolve. It works fine if I name it "component" though.

Example input file with "components":

components:
  $inline: /../../openapi/openapi.json#/components

Example output:

{
  "components": {
    "$inline": "/../../openapi/openapi.json#/components"
  }
}

And when I rename it to "component":

Example input file:

component:
  $inline: /../../openapi/openapi.json#/components

Example output:

{
  "component": {
    "BearerAuth": {
      "scheme": "bearer",
      "type": "http"
    }
  }
}

I think I'm on the latest version: v0.0.0-20210319105711-a82b92013e23

@dolmen, can you help?

Activity

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

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions