Skip to content

Pattern properties do not load external $refs #2387

Open
@tfedor

Description

@tfedor

Describe the bug
Pattern properties do not load external $refs, it seems to work if the $refs are local, but I didn't properly test it

Expected behavior
$refs should properly load external files

Minimal reproducible OpenAPI snippet(if possible)
test.yaml

openapi: 3.1.0
info:
  title: "Example"
  version: "1.0"
  description: "Example"
paths:
  "/test/":
    get:
      summary: Example
      responses:
        200:
          description: List of shops and their details
          content:
            "application/json":
              schema:
                type: object
                properties:
                  "working":
                    $ref: "testobj.yaml"
                patternProperties:
                  "not-working":
                    $ref: "testobj.yaml"

testobj.yaml

type: object
properties:
  key:
    type: number

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugopenapiQuestions about specification, validity, and edge cases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions