- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 475
Closed
Description
Error occurs while loading spec file when references internal object definitions(defined in same file), and references external schema definitions in its properties.
some/dir/openapi.yml
openapi: 3.0.0
info:
  title: 'spec'
  version: 1.2.3
paths:
  /foo:
    get:
      summary: get foo
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Foo"
components:
  schemas:
    Foo:
      type: object
      properties:
        id:
          $ref: "./common/foo.yml"some/dir/common/foo.yml
type: stringIn this case, following errors occurs:
open some/common/foo.yml: no such file or directory
It seems that file paths is joined incorrectly.
Metadata
Metadata
Assignees
Labels
No labels