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
We have a bigger OpenAPI spec for which we want to publish only specific parts to Readme.com and make public.
Therefore we're trying to use the rdme openapi:reduce function, but this breaks the resulting spec as the $ref import paths are completely messed up (and therefore the spec doesn't validate when trying to upload).
A small section from our spec: api.yml:
openapi: 3.1.0paths:
/api/dashboards/{id}:
get:
tags: [public]summary: Receive a specific dashboard by its id.parameters:
- in: pathname: idschema:
type: stringrequired: truedescription: Dashboard Id.responses:
'200':
description: Receive a specific dashboard.content:
application/json:
schema:
$ref: 'dashboarding.yml#/components/schemas/DashboardDefinition'default:
description: In case any error happens.content:
application/json:
schema:
$ref: 'common.yml#/components/schemas/ErrorResponse'
We have a bigger OpenAPI spec for which we want to publish only specific parts to Readme.com and make public.
Therefore we're trying to use the
rdme openapi:reduce
function, but this breaks the resulting spec as the$ref
import paths are completely messed up (and therefore the spec doesn't validate when trying to upload).A small section from our spec:
api.yml
:common.yml
with the ErrorResponse definition:After running
rdme openapi:reduce api.yml --tag public --out api.reduced.json
, the$ref
s are messed up in different ways (fullapi.reduced.json
):The text was updated successfully, but these errors were encountered: