-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Ability to auto-expand message schema #440
Comments
Hi All @here I believe the react component (https://github.com/asyncapi/asyncapi-react) has this feature already. It would be great that html-template follows suit. Also in each message there is an "example" section. It would be great for that section to have the ability to expand and collapse as well. So maybe the example is collapsed by default and can be expanded when user is interested in seeing the example. Just to give an idea, here is the SMALLEST message we have...
where each $ref is pointing to another schema for example, the subject field has the following schema...
As you can imagine it can get very overwhelming to scroll through these messages and their example sections. This issue was pointed out as feedback from our team members and it would be great to know if this git issue will be addressed soon. |
Unfortunately, I don't think I will be able to address this issue anytime soon. @naderafshari I encourage you to take a stab at it! |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
2 similar comments
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
3 similar comments
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
I'm closing this one, component changed a lot since this issue was created. If anyone is interested in it, please create new separate issue with detailed explanation (best would be some mocks) |
@derberg I think that's a nice feature, for that I didn't close it yet 😅 I mean, sometimes it's really cumbersome to expand a very deep JSON Schema, so some "button" to expand all children of given Schema would be very nice. |
Moving to the |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Still valid. PR is opened for that issue #514 |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
🎉 This issue has been resolved in version 1.0.0-next.40 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closing as it seems the bot failed to do it. |
Description
If one has a scheme that is too large and deep, then the component will render a very large amount of nesting that one has to manually click through to see the deep schema values. To increase the UX, we should have an additional button next to subschema button - a button to show deep nesting.
Solution
The changes should be introduced in the Schema component. If the user presses the extra button, all subschemas should open/close (depending if subschemas are opened/closed).
@davydog187 commented on Wed Jan 22 2020
Hello and thank you for this great project!
The Problem
I have nested payload structures that are 3-4 levels deep, and it is cumbersome to keep clicking to view the schema.
Potential Solution
It would be nice if there was an option in the generator that has nested structures auto-expanded, maybe with a parameter to specify the level of nesting that you want to stop auto-expanding.
I could be interested in helping contribute, but would need some pointing in the right direction :) Thanks!
@fmvilas commented on Wed Feb 05 2020
Hey @davydog187. Thanks for the suggestion. It would indeed be great. Any help would be much appreciated 🙏
The text was updated successfully, but these errors were encountered: