Consider renaming the ConstraintsException
#30
Labels
[package] stapi-fastapi
FastAPI server implementation
ConstraintsException
#30
Product backend implementations are instructed to raise the the
ConstraintsException
when anOpportunityRequest
or anOrderPayload
does not validate. Does this mean that only the CQL2 filter constraints within these objects are to be validated? If so, we should make that clear in both docstrings. If not, from a terminology standpoint, raising aConstraintsException
when an opportunity request or an order payload does not validate is confusing, and renaming the exception to something more generic likeInvalidRequestError
could improve clarity.The text was updated successfully, but these errors were encountered: