Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Use of 'oneOf' renders undefined title in html template #678

Closed
2 tasks done
Skezzowski opened this issue Sep 13, 2024 · 2 comments
Closed
2 tasks done

[BUG] Use of 'oneOf' renders undefined title in html template #678

Skezzowski opened this issue Sep 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Skezzowski
Copy link

Describe the bug.

If you have a message with oneOf, the template will show:
'Adheres to undefined'
'Or to undefined'

The issue is not present when I render the docs with Studio. Is Studio using an older template?

My asynapi cli version:
@asyncapi/cli/2.3.12 win32-x64 node-v20.17.0
├@asyncapi/avro-schema-parser/3.0.24
├@asyncapi/bundler/0.6.3
├@asyncapi/converter/1.6.0
├@asyncapi/diff/0.4.1
├@asyncapi/generator/1.17.25
├@asyncapi/modelina/3.7.0
├@asyncapi/modelina-cli/4.0.0-next.61
├@asyncapi/openapi-schema-parser/3.0.24
├@asyncapi/optimizer/1.0.3
├@asyncapi/parser/3.3.0
├@asyncapi/protobuf-schema-parser/3.2.14
├@asyncapi/raml-dt-schema-parser/4.0.24
└@asyncapi/studio/0.20.2

The command I used:
asyncapi generate fromTemplate ./test-asyncapi-docs.yml @asyncapi/[email protected] -o test --force-write

Expected behavior

Should render:
'Adheres to'
'Or to '

Screenshots

Studio:
image

Local:
image

How to Reproduce

  1. Generate a htlm template from: https://github.com/asyncapi/spec/blob/master/examples/oneof-asyncapi.yml

🥦 Browser

Mozilla Firefox

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

@Skezzowski Skezzowski added the bug Something isn't working label Sep 13, 2024
Copy link

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@Skezzowski
Copy link
Author

Sorry, added Issues to the wrong repo.
Closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant