Currently there is no way to mark a parameter as deprecated.
We may use the show: false and required: false to maybe indicate that an attribute is deprecated, however there is no direct way to indicate a deprecation.
Proposal
Introduce a truthy/falsy deprecated attribute for param / property, that defaults to false
Motivation
Currently there is no way to mark a parameter as deprecated. We may use the
show: false
andrequired: false
to maybe indicate that an attribute is deprecated, however there is no direct way to indicate a deprecation.Proposal
Introduce a truthy/falsy
deprecated
attribute forparam
/property
, that defaults tofalse
For example
Implementation
Although I haven't really thought this through the end I think something like this could work.
Later we could display it on template.
Some thoughts
Ideally I would like to convey four things
Accepting a hash solves the above, it's not the most DSLish way, however I can't think anything better 😅
I don't see why it would not be backwards compatible.
At some point I would like to work on this feature. Any thoughts ?