-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Array schema is not being parsed correctly #154
Comments
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. |
Hello, just want to add that I had a look at the code and there is this comment on that the 'Items' property can either be a json schema or an array of schemas.
as described here: So we could either use the 'prefixItems' property ..or the other option would be to set the 'items' property as a list of schemas? |
Thanks a lot for this project. Appreciate it very much. However lack of array support is a blocker for us. Can you please help by prioritising the same and if you could please review the PR? |
@jaydeepk @harikrishnan83 sorry for late response. I reviewed your PR now and it looks fine, for first view. I'm not sure that selected key word is actual for JSON Schema draft 7. Will check it tomorrow |
@Pakisan thanks for taking a look. |
Thanks for the update @Pakisan, no worries ! |
I think that we can't use
So let's don't add |
@harikrishnan83 @harikrishnan83 Hi! If everything works fine, I propose to close this issue. If you are using library in project inside open repo, you can attach link to it. It will allow me to notify you about new release o propose MR with bumped version of library |
In think it will be end of December, cause on 6 of December will be release of new version of our spec and I need time to refactor things |
Hi
We are experiencing some issues with parsing specs where messages are defined as an array of objects.
Let's say I have this spec:
When I parse this schema, the 'items' property appears as a LinkedHashMap.
Ideally, we'd expect this to be a Schema object.
Also in this map, 'properties is again a <String, LinkedHashMap> instead of <String, Schema> ( like we see it for a payload of type="object")
Could you please advise if my understanding is correct and if this is something that you plan to fix at some point ?
The text was updated successfully, but these errors were encountered: