You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to migrate away from Redocly to zudoku, and seem to have encountered an issue using $ref in individual paths. I describe my issue below in what appears to be a bug, but please do let me know if I am making a simple mistake!
As such, the generated file structure contains apis/openapi.yaml. Within api/, I created a folder called paths, with a file inside it called user.yaml, as such:
example
- apis/
--- openapi.yaml
--- paths/
----- user.yaml
<remaining generated files that are untouched>
To illustrate the issue I am encountering, I am using the simple example seen at https://swagger.io/docs/specification/v3_0/basic-structure/#_top. I would expect to see the /users path rendered when navigating to localhost:9000/api - however, I only see the Overview page (which shows Sample API and the description of Optional multiline or single-line description in CommonMark or HTML.).
Below are the relevant apis/openapi.yaml and apis/paths/user.yaml files generated from said example.
apis/openapi.yaml
openapi: 3.0.0info:
title: Sample APIdescription: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.version: 0.1.9servers:
- url: http://api.example.com/v1description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.comdescription: Optional server description, e.g. Internal staging server for testingpaths:
/users:
$ref: 'paths/user.yaml'
apis/paths/user.yaml
get:
summary: Returns a list of users.description: Optional extended description in CommonMark or HTML.responses:
"200": # status codedescription: A JSON array of user namescontent:
application/json:
schema:
type: arrayitems:
type: string
The text was updated successfully, but these errors were encountered:
I'm attempting to migrate away from Redocly to zudoku, and seem to have encountered an issue using
$ref
in individual paths. I describe my issue below in what appears to be a bug, but please do let me know if I am making a simple mistake!As seen at https://swagger.io/docs/specification/v3_0/using-ref/#considerations, it is valid syntax to have the following:
To start, I created an example Project using:
...with my project name being
example
.As such, the generated file structure contains
apis/openapi.yaml
. Withinapi/
, I created a folder calledpaths
, with a file inside it calleduser.yaml
, as such:To illustrate the issue I am encountering, I am using the simple example seen at https://swagger.io/docs/specification/v3_0/basic-structure/#_top. I would expect to see the
/users
path rendered when navigating tolocalhost:9000/api
- however, I only see theOverview
page (which showsSample API
and the description ofOptional multiline or single-line description in CommonMark or HTML.
).Below are the relevant
apis/openapi.yaml
andapis/paths/user.yaml
files generated from said example.apis/openapi.yaml
apis/paths/user.yaml
The text was updated successfully, but these errors were encountered: