Skip to content

Command 'bundle' use wrong reference in 'operations' section #2520

@astramax57

Description

@astramax57

Describe the bug

My API for websocket consist from several files and for rendering API description in final image I need to make one file using bundle command (see script merge_xapi_json.sh). This script makes one file in asyncapi 3.0.0 format, but some references in final file is broken.

for example, there is value "#/components/messages/action" in file asyncapi_bundle.json in section "operations/send_ui_actions/message", but if we render this file the error was occure:

Image

to fix this behavior I change value to "#/channels/graphbe_v2/messages/action"

To Reproduce

I provide minimal project for reproduce bug
project.tar.gz

  1. build bundle asyncapi doc
./merge_xapi_json.sh
  1. build image and run
docker build -t redocly-test .
docker compose up -d
  1. test asyncapi doc with error
    http://localhost:5000/docs/asyncapi

  2. test pathched asyncapi doc
    http://localhost:5000/docs/asyncapi/manual_patched

Expected behavior

  1. test pathched asyncapi doc
    http://localhost:5000/docs/asyncapi/manual_patched
Image

Logs

error in browser see in 'Describe' section
normal render looks like in 'Expected behavior' section

OpenAPI description

see asyncapi_*.json

Redocly version(s)

2.10.0
in image
redocly/cli:latest sha256:5df39d10f98e9f6bc6839328f0e753476d0385799c47cd1f1c09c4d7285d1cfc

OS, environment

ubuntu desktop 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions