-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Missing elements from deeply nested objects #58
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. |
Hey @kostisthomaidis! I found the problem here. It's actually a bug on your AsyncAPI definition: individual:
type: object
firstName:
type: string
description: First name of individual.
lastName:
type: string
description: Last name of individual.
employment:
type: string
description: Employment of individual
usage:
type: string
description: Usage of car by owner
enum:
- Holiday
- Work
- Commute
mileage:
type: integer
description: Mileage under this owner You're missing the individual:
type: object
properties: # <== Notice this field
firstName:
type: string
description: First name of individual.
lastName:
type: string
description: Last name of individual.
employment:
type: string
description: Employment of individual
usage:
type: string
description: Usage of car by owner
enum:
- Holiday
- Work
- Commute
mileage:
type: integer
description: Mileage under this owner The reason it's not failing is that it's not illegal to place disparate fields on a JSON Schema object. Hope it helps! |
Thank you so much for your swift reply! This indeed fixes the issue! |
@fmvilas I just checked my schema, where I do have properties key after all the type:object line, |
Describe the bug
Hi everyone! We are developing a car dealership application and we are trying to incorporate AsyncAPI to our stack.
Using the AsyncAPI Playground to test the file, I found that some nested objects (3 levels deep) were not created in full.
After cloning the project and debugging locally, I traced that the file was properly parsed and could find it as context up to this point in the call stack:
However, I am not very familiar with JS and could use some help with this.
How to Reproduce
carDealership-asyncapi.zip
An example of the bug lies in the component payload -> previousOwners -> individual, under jsonMessage. The component has more properties, but they have not been rendered.
Expected behavior
Properties of deeply nested objects (like the example above) should be rendered.
The text was updated successfully, but these errors were encountered: