event-catalog / event-catalog/generators

SchemaViewer cannot view external json schema

Open
#16 0 comments 2 reactions 0 assignees View on GitHub
generator-asyncapi
Dominant language
TypeScript
Stars
15
Forks
16
Avg merge
25m
Merged PRs (30d)
4

Description

### I tried this:

clone https://github.com/HansMartinJ/eventcatalog-sample-schema-generation-bug
verify that asyncapi-files/service.yaml has correct format and refs external json schema

`npm run generate`

go to http://localhost:3000/docs/events/lightmeasuredmessagejson/1.0.0

### This happened:

Shows no schema defined

### I expected this:

Schema rendered

### Is there a workaround?

The generated schema in events/lightMeasuredJson wraps original schema in "schema" field, remove this (and schemaFormat). Then it works

### Anything else?

Avro is also wrapped in schema field. But component manages to render it.

Config:
asyncAPI: {
renderParsedSchemas: false // default is true
},
saveParsedSpecFile: true,
parseSchemas: false,

### EventCatalog Version

2.12.0, generator: 2.5.1

### Node.js Version

v23.1.0

### Platform(s)

_No response_

### Community Notes

* Please vote by adding a 👍 reaction to the issue to help us prioritize.
* If you are interested to work on this issue, please leave a comment.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.