-
Notifications
You must be signed in to change notification settings - Fork 77
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
Springwolf ui can't mapped oneOf message. Error parsing AsyncAPI message of channel. #1133
Comments
Welcome to Springwolf. Thanks a lot for reporting your first issue. Please check out our contributors guide and feel free to join us on discord. |
Hi @FanatTokyoGhoul, thanks a lot for the detailed report. Any chance that you could provide the full specification so that we can reproduce the error with the specification only? You can also provide a MR that reproduces the error if thats easier for you. |
Hi @sam0r040, sorry for the long reply. Here is the demo specification that causes this error.
I got this specification by calling /springwolf/docs |
Describe the bug
When i generate oneOf message schema for springwolf-ui i get exception - "Error parsing AsyncAPI message of channel queue: Schema com.example.request.Request1 not found".
Dependencies and versions used
springwolf-sqs
version1.9.0
springwolf-ui
version1.9.0
kotlin
version2.0.21
spring
version3.3.5
anddependency manager
version1.1.5
Code Examples
Spring SqsListener
I use only AsyncListener. Sqs listener i disable in application.yml. This example for my sqs listener.
Dto class examples
When i send request GET /springwolf/docs i get response -
When i use springwolf-ui i see this exception
I debugging js code your springwolf-ui and found this code
springwolf-core/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts
Lines 290 to 306 in 123fe16
In this code method mapSchemaObj use parameter schemas how {} and in this method has this code
springwolf-core/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts
Lines 443 to 445 in 123fe16
In method addPropertiesToSchema this property use for get schemas for payload message
springwolf-core/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts
Lines 497 to 509 in 123fe16
This method throw exception.
springwolf-core/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts
Lines 511 to 527 in 123fe16
Сode try get schema from {} object which was delivered
springwolf-core/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts
Line 305 in 123fe16
Maybe I'm doing something wrong, but it looks like a bug.
The text was updated successfully, but these errors were encountered: