@requires rules
On input params -- the param is excluded from the input schema when can? returns false. Tag them in the #: annotation above def call:
On input params -- the param is excluded from the input schema when can? returns false. Tag them in the #: annotation above def call:
#: (
#: query: String,
#: ?force: bool @requires(:admin),
#: ?include_deleted: bool @requires(:admin)
#: ) -> Hash[Symbol, untyped]
def call(query:, force: false, include_deleted: false)On output variants -- the variant is excluded from the oneOf:
# @rbs type output = public_result
# | admin_result @requires(:admin)
# | errorUntagged params and variants are always included.
Collected from README.md in the repository. Edit it there, not here.