I have a model like this:
my_resource_model = api.model(
RESOURCE_NAME,
'month_id': rest.fields.String,
'week_id': rest.fields.String
)
And a Resource like this:
class MyResource(Resource):
@api.expect(my_resource_model):
def post(self):
# need to require either week_id *or* month_id is present in request
How can I specify that both fields are not required but at least one must be passed?