You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should be removed completely IMO. Since if properties have been defined (lets say they omit the type keyword) we still need to be able to iterate those properties.
Hey @jonaslagoni, By standalone components you mean which do not have $ref (reference) to another type of schemas?
Can you please clear this doubt on standalone components Thanks.
@arjungarg07 Yes either that or directly referenced by the document such as for testParam is never referenced by a channel and therefore never given an id. Because it is a standalone parameter no one uses 😄
asyncapi: 2.0.0
info:
title: My API
version: '1.0.0'
channels: {}
components:
parameters:
testParam:
schema:
type: object
properties:
name:
type: string
Hey @jonaslagoni , I parsed this doc, and on calling doc.allSchemas() I am getting the output as shown. I think patternProperties ,definitions, dependencies are already iteratable, Can you please tell why do we need to add these keywords in iterator?
@arjungarg07 In your example you have defined schemas called patternProperties ,definitions and dependencies. You need to use them as keywords in a schema. Such as:
Hey @jonaslagoni, really sorry for not being active on this issue, it's coz of the whole covid situation in India, but now all fine and am catching up to resolve this issue.
Hey @jonaslagoni, really sorry for not being active on this issue, it's coz of the whole covid situation in India, but now all fine and am catching up to resolve this issue.
You don't have to apologize @arjungarg07, hope everything is well! You can spend as much time as you want on this, so don't stress about it 🙂
Can you please share with me the whole doc of which this is a subset as I need to prepare a new doc for testing?
I am assuming you want an AsyncAPI document example right? As the example schema is part of the payload, you can add the json to the following, replacing <Insert here> with the above example:
You don't have to apologize @arjungarg07, hope everything is well! You can spend as much time as you want on this, so don't stress about it 🙂
Thanks, just have to prepare the test file😃
I am assuming you want an AsyncAPI document example right? As the example schema is part of the payload, you can add the json to the following, replacing <Insert here> with the above example:
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
I don't think so, coz now I would have to reiterate through the issue again. Would love it if anyone else could take this up or I will try to look into it again this week :)
@arjungarg07 I don't think anyone here will have time to look at it in next weeks anytime soon so I suggest you continue in October and you will have already one PR for the Hacktoberfest 😄
@arjungarg07 Are you still interesting with this task? The problem itself is much deeper and it is not only about iterating through all the schemes but also about detecting circular schemes in traverseSchema function - see for example this issue asyncapi/generator#666
I would like to try to fix this problem because a lot of people have a problem with circular references and we should support them in html-template and markdown-template.
Activity
jonaslagoni commentedon Feb 27, 2021
After some research here are some other schemas keywords we need to add to the iterator:
patternPropertiesdefinitionsdependenciesFurthermore this check
parser-js/lib/iterators.js
Line 65 in 9efaeee
typekeyword) we still need to be able to iterate those properties.Also this check
parser-js/lib/iterators.js
Line 60 in 9efaeee
parser-js/lib/iterators.js
Line 186 in 9efaeee
parser-js/lib/iterators.js
Line 209 in 9efaeee
Furthermore
parser-js/lib/iterators.js
Line 75 in 9efaeee
jonaslagoni commentedon Feb 27, 2021
If anyone is up for the task we are always ready to help you out in the implementation of the issue, if it needs more explaining, just let us know 👋
arjungarg07 commentedon Mar 16, 2021
I am getting familiar with the codebase of parser-js and will pick up this issue real soon.
arjungarg07 commentedon Mar 24, 2021
Hey @jonaslagoni, By
standalone componentsyou mean which do not have$ref(reference) to another type of schemas?Can you please clear this doubt on
standalone componentsThanks.jonaslagoni commentedon Mar 24, 2021
@arjungarg07 Yes either that or directly referenced by the document such as for
testParamis never referenced by a channel and therefore never given an id. Because it is a standalone parameter no one uses 😄Did that make sense? 🤔
arjungarg07 commentedon Mar 24, 2021
Yeah, that makes sense. Thanks😀
arjungarg07 commentedon Mar 30, 2021
Hey @jonaslagoni , I parsed this doc, and on calling
doc.allSchemas()I am getting the output as shown. I thinkpatternProperties,definitions,dependenciesare already iteratable, Can you please tell why do we need to add these keywords in iterator?jonaslagoni commentedon Mar 30, 2021
@arjungarg07 In your example you have defined schemas called
patternProperties,definitionsanddependencies. You need to use them as keywords in a schema. Such as:arjungarg07 commentedon Mar 31, 2021
Thanks, @jonaslagoni for helping me out.
arjungarg07 commentedon May 10, 2021
Hey @jonaslagoni, really sorry for not being active on this issue, it's coz of the whole covid situation in India, but now all fine and am catching up to resolve this issue.
Can you please share with me the whole doc of which this is a subset as I need to prepare a new doc for testing?
Thanks!
jonaslagoni commentedon May 10, 2021
You don't have to apologize @arjungarg07, hope everything is well! You can spend as much time as you want on this, so don't stress about it 🙂
I am assuming you want an AsyncAPI document example right? As the example schema is part of the payload, you can add the json to the following, replacing
<Insert here>with the above example:arjungarg07 commentedon May 10, 2021
Thanks, just have to prepare the test file😃
Yeah! This will help a lot.
github-actions commentedon Jul 10, 2021
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
github-actions commentedon Sep 11, 2021
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
derberg commentedon Sep 13, 2021
@arjungarg07 do you continue with this?
arjungarg07 commentedon Sep 14, 2021
I don't think so, coz now I would have to reiterate through the issue again. Would love it if anyone else could take this up or I will try to look into it again this week :)
derberg commentedon Sep 20, 2021
@arjungarg07 I don't think anyone here will have time to look at it in next weeks anytime soon so I suggest you continue in October and you will have already one PR for the Hacktoberfest 😄
magicmatatjahu commentedon Oct 18, 2021
@arjungarg07 Are you still interesting with this task? The problem itself is much deeper and it is not only about iterating through all the schemes but also about detecting circular schemes in
traverseSchemafunction - see for example this issue asyncapi/generator#666I would like to try to fix this problem because a lot of people have a problem with circular references and we should support them in html-template and markdown-template.
arjungarg07 commentedon Oct 23, 2021
Yeah, sure. Please go ahead fixing this one. Thanks.
asyncapi-bot commentedon Nov 23, 2021
🎉 This issue has been resolved in version 1.12.0 🎉
The release is available on:
Your semantic-release bot 📦🚀