Skip to content

OpenAPI - support for relative documents with embedded schema #858

Discussion options

You must be logged in to vote

Hey @System-Glitch, we do support $ref to external documents when using a URL instead of uploading an OpenAPI file. We don't currently support it when uploading files; we might look into supporting it, but it has not been a common request/case so far.

At this stage, my suggestion will be to either:

  • Host your OpenAPI files on a public server and reference the URL of the main one when inserting OpenAPI blocks in GitBook. GitBook will automatically fetch the other files and dereference on the fly when rendering the block
  • Dereference the OpenAPI spec in a build step. It can be done with redocly bundle command.

For our API documentation, this is something we do as part of our deployment: htt…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@System-Glitch
Comment options

@System-Glitch
Comment options

Answer selected by System-Glitch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants