You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a complex object that models the entire request (where headers, route params, query params, body are bound to properties in the request model) plays very well when using a mediator for handling requests. Also- not every request has data/parameters to bind to (i.e. "Get All" endpoints for that have no optional filtering).
It would be nice if we can suppress this behavior like AspNetCore allows us to do, either by checking the framework setting "SuppressInferBindingSourcesForParameters " if possible or simply having its own setting. If all else, an adhoc solution (custom swashbuckle service) i can create/inject to suppress this behavior, would be great!
Great library.
Cheers,
-Chris
The text was updated successfully, but these errors were encountered:
VERSION:
STEPS TO REPRODUCE:
EXPECTED RESULT:
ACTUAL RESULT:
ADDITIONAL DETAILS
It seems Swashbuckle defaults the model binding to Query when no binding attributes are found (correctly so, as AspNetCore does for ApiController attributed Controllers). But AspNetCore allows us to disable this behavior.
Having a complex object that models the entire request (where headers, route params, query params, body are bound to properties in the request model) plays very well when using a mediator for handling requests. Also- not every request has data/parameters to bind to (i.e. "Get All" endpoints for that have no optional filtering).
It would be nice if we can suppress this behavior like AspNetCore allows us to do, either by checking the framework setting "SuppressInferBindingSourcesForParameters " if possible or simply having its own setting. If all else, an adhoc solution (custom swashbuckle service) i can create/inject to suppress this behavior, would be great!
Great library.
Cheers,
-Chris
The text was updated successfully, but these errors were encountered: