mask=
does something I hacked around by having a nasty lambda
function in my model so that will clean that up significantly,
@api.route("/<string:subaccount>/user/<string:uniquename>")
How do I do stricter validation of uniquename much like parsing payloads? Do I do it all manually in my routine? Or is there something more strict than <string:varname>
?
I currently have problems with marshalling my Responses.
I am trying to do the following:
test_model = Model(
"Test",
{
"_id": fields.String,
"name": fields.String,
"location": fields.String,
"ip": fields.String,
},
)
success_model = Model(
"Success",
{"data": fields.List(
fields.Nested(test_model)
)
},
)
Without throwing any exception the data in the response is null
[{"status": "success", "data": null}']
Can somebody give me an advice?