Replies: 2 comments 1 reply
-
There would require some overhaul for that to happen, because flask rebar does not provide the fields objects. those all come from marshmallow. You can implement this yourself by creating the fields that you need and registering them to the convertors and just returning |
Beta Was this translation helpful? Give feedback.
0 replies
-
Right now, we aren't creating the fields themselves, we're just using the field super_secret = fields.String(metadata={"hidden": True}) and def get_schema_fields(schema):
"""Retrieve all the names and field objects for a marshmallow Schema
"""
fields = []
for name, field in schema.fields.items():
if 'hidden' in field.metadata and field.metadata['hidden']:
continue
prop = compat.get_data_key(field)
fields.append((prop, field))
return sorted(fields) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a few use cases where hidden fields are useful -- things like:
Hidden endpoints were released in #191, but there isn't currently support for hidden fields. Is there any appetite for hidden fields for the wider audience? Something similar to:
Beta Was this translation helpful? Give feedback.
All reactions