-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
My current directory structure:
| spec
| main.yaml
| template.yaml
| organisation
| organisation.yaml
I am trying to import a schema written in template.yaml to organisation.yaml. organisation.yaml contains operations for a path and it will again be added via refs to main.yaml to a path.
I am facing an issue when trying to reference a schema template.yaml in organisation.yaml.
organisation.yaml
get:
summary: Fetch an organisation's data
responses:
"200":
description: ok
content:
application/json:
schema:
type: object
properties:
gkstatus:
$ref: "../template.yaml#/components/schemas/gkstatus"- When I try ../template.yaml, it searches in the parent directory of spec
- When I try ../spec/template.yaml, it searches in /spec/spec/template.yaml
- I got it working by having a copy of template.yaml inside the organisation folder and one inside the spec folder near the main.yaml file
I am confused, can some one help me out?
Metadata
Metadata
Assignees
Labels
No labels