Can we refer json from other file in the openapi json file ? #1002
mdhvcgf
started this conversation in
Bugs & Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m trying to split my large openapi.json into smaller files and reference them with $ref. In my main spec I have:
"/ai/v1/lesson-plan/get-additional-blocks": { "$ref": "paths/lesson-plan/get-additional-blocks.json#/GET_METHOD" }
However, when I run validation I get an error. Is this the correct way to reference an external path definition in Swagger/OpenAPI? I saw this syntax in the documentation of Swagger but can’t get it to validate—what am I doing wrong? Below is my file structure
Beta Was this translation helpful? Give feedback.
All reactions