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
Describe the bug
Hello again! After the feedback I got in #543, I've updated our spec to successfully bundle, however I noticed that bundle isn't fully rendering the schemas. Instead, they show up as refs:
openapi: 3.0.0info:
version: 1.0.0title: Ashby APIdescription: The public API for accessing resources in your Ashby instance.contact:
name: Ashby Supporturl: https://app.ashbyhq.com/supportemail: support@ashbyhq.comservers:
- url: http://api.ashbyhq.comtags:
- name: ashbypaths:
/interviewSchedule.list:
post:
summary: Gets all interview schedules in the organizationoperationId: interviewScheduleListdescription: A list of interview schedulestags:
- petsparameters:
- $ref: '#/components/parameters/cursor'
- $ref: '#/components/parameters/syncToken'
- $ref: '#/components/parameters/createdAfter'responses:
'200':
description: Expected response to a valid requestcontent:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/PaginatedResponse'
- type: objectrequired:
- resultsproperties:
results:
type: arrayitems:
$ref: '#/components/schemas/InterviewSchedule'components:
parameters:
cursor:
$ref: '#/components/parameters/cursor'syncToken:
$ref: '#/components/parameters/syncToken'createdAfter:
$ref: '#/components/parameters/createdAfter'schemas:
cursor:
$ref: '#/components/schemas/cursor'syncToken:
$ref: '#/components/schemas/syncToken'BaseResponse:
$ref: '#/components/schemas/BaseResponse'PaginatedResponse:
$ref: '#/components/schemas/PaginatedResponse'InterviewSchedule:
$ref: '#/components/schemas/InterviewSchedule'
Initially, I thought maybe bundle without --dereferenced is only meant to have refs everywhere, like this. So, I tried to preview-docs, and the page fails to get past the loading spinner. The following is printed in the console:
To Reproduce
Steps to reproduce the behavior:
Given the attached multi-file openapi setup
Run openapi bundle openapi.yml or openapi preview-docs openapi.yml
Expected behavior
Bundles the spec with schemas + preview-docs renders the API documentation
Describe the bug
Hello again! After the feedback I got in #543, I've updated our spec to successfully bundle, however I noticed that
bundle
isn't fully rendering the schemas. Instead, they show up as refs:Initially, I thought maybe
bundle
without--dereferenced
is only meant to have refs everywhere, like this. So, I tried topreview-docs
, and the page fails to get past the loading spinner. The following is printed in the console:To Reproduce
Steps to reproduce the behavior:
openapi bundle openapi.yml
oropenapi preview-docs openapi.yml
Expected behavior
Bundles the spec with schemas + preview-docs renders the API documentation
Logs
See above screenshot
OpenAPI definition
openapi.zip
openapi-cli
Version(s)1.0.0-beta.80
Node.js
Version(s)16.13.0
Additional context
I might be misinterpreting how
bundle
works vsbundle --dereferenced
. Happy to file a ticket if these issues are unrelated!The text was updated successfully, but these errors were encountered: