Skip to content

Inline references does not resolve relative references #106

Closed
@marcelthole

Description

@marcelthole

IS

  • I have a Component file with 2 components
  • The first component will be inlined with the SingleComponent but the relative part is not resolved
  "components": {
    "schemas": {
      "ListOfComponents": {
        "description": "",
        "type": "object",
        "properties": {
          "list": {
            "$ref": "#/components/schemas/SingleComponent"
          }
        }
      },
      "SingleComponent": {
        "description": "",
        "type": "object",
        "properties": {
          "childs": {
            "type": "array",
            "items": {
              "$ref": "./ChildComponent.json#/components/schemas/ChildComponent"
            }
          }
        }
      }
    }
  }
  • This is a problem, if a second file references the ListOfComponents an the file is in a different directoy structure and can't resolve the ChildComponent

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions