-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Disable schemas
by default; implement switch/property to intentionally enable them
#237
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. |
Should I include this behavior in the scope of asyncapi/bundler#141 because I think it would improve the UX? |
IMHO and also from the perspective of reusability that we always promote -> we should have |
@aeworxet If I am being honest, how the schema currently works bothered me for some time. A lot of times it overdoes the re-use and the file becomes ugly to read for humans. Maybe we can find some middle ground for how optimiser works with schemas.
commentCountChange:
x-origin: ./parameters.yaml#/commentId
description: ID of the comment to be optimised since it only has one field and by optimising it, we are making it harder to read.
I am wondering what you think. |
@derberg Talking about: okay, @KhudaDad414 THIS is what I mean. |
I agree with this approach. having them on by default and having the option to disable it. |
yup, agree with @KhudaDad414 |
closing as resolved in #216. |
Clone of asyncapi/bundler#141 (comment)
When working on asyncapi/bundler#141
I tried the modified
Optimizer
(moveAllToComponents: true
) onthis AsyncAPI Document, which is the result from the modified `Bundler`
and received
this
then I turned off
schemas
, receivedthis
and I have a feeling that users would like the latter more.
Thus, should
schemas
be turned off by default, and users would need to specifically ENABLE them, for example, with the command-line switch--include-schemas
?It may be the opposite way around, but I believe that the possibility of changing the appearance/invisibility of
schemas
should definitely exist.The text was updated successfully, but these errors were encountered: