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

fix: array schema is not being parsed correctly #159

Merged
merged 6 commits into from
Oct 14, 2023

Conversation

jaydeepk
Copy link
Contributor

Description
Fixes parsing of messages where payload is an array:
if 'items' is an object, it will parsed into a Schema object.
If 'items' is defined as an array of schemas, it will parsed into a list of schemas.

Related issue(s)
Resolves #154

jaydeepk added 6 commits July 3, 2023 15:59
…a object instead of a LinkedHashMap.

If it is an array of schemas, then it will be returned as an arraylist ( like before)
# Conflicts:
#	asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageWithArrayPayloadArrayOfSchemas.json
#	asyncapi-core/src/test/resources/json/v3/3.0.0/model/channel/message/messageWithArrayPayloadJsonSchema.json
…, as we have currently implemented the array schema parsing only for v2.6.0.
@jaydeepk jaydeepk changed the title 1.0.0 eap 3 snapshot fix: array schema is not being parsed correctly #156 Oct 13, 2023
@jaydeepk jaydeepk changed the title fix: array schema is not being parsed correctly #156 fix: array schema is not being parsed correctly Oct 13, 2023
@Pakisan Pakisan merged commit 5f12b19 into asyncapi:1.0.0-EAP-3-SNAPSHOT Oct 14, 2023
19 of 20 checks passed
@Pakisan
Copy link
Member

Pakisan commented Oct 14, 2023

Original PR: #156

@harikrishnan83 harikrishnan83 deleted the 1.0.0-EAP-3-SNAPSHOT branch June 27, 2024 18:39
@harikrishnan83 harikrishnan83 restored the 1.0.0-EAP-3-SNAPSHOT branch June 27, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants