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

Components Schemas, Messages: Multiple level arrays not rendered completely. #203

Closed
AMulgrave opened this issue Jan 10, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@AMulgrave
Copy link

The following yaml snippet demonstrates object arrays not being rendered completely. Note, this type of construct will render correctly in OpenAPI.

asyncapi: 3.0.0
info:
title: Show defect Service
version: 1.0.0
description: This message payload structures are not rendered completely
components:
schemas:
BlockItem:
description: An item in a block.
type: object
properties:
Id:
type: string
format: guid
Name:
type: string
messages:
Add:
description: Block item structure is only expanded for non array property
payload:
type: object
properties:
BlockItem:
$ref: '#/components/schemas/BlockItem'
BlockItems:
type: array
Items:
$ref: '#/components/schemas/BlockItem'

yaml formatting lost so file attached.
asyncapi.yaml.txt
Screenshot asyncapi defect

@AMulgrave AMulgrave added the bug Something isn't working label Jan 10, 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.

@ivangsa
Copy link
Collaborator

ivangsa commented Jan 10, 2024

hi @AMulgrave

it seems you have a typo in your asyncapi.yml: array items keyword should be lower case... and that renders ok

image

@ivangsa ivangsa closed this as completed Jan 10, 2024
@AMulgrave
Copy link
Author

My bad! Thankyou.
Of course, it would help if warnings and errors were displayed.

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

2 participants