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
We're encountering a routing issue with Prism where it can't distinguish between two similar paths:
/contracts/{contract_id}/items/{item_id}/{reference_date} — reference_date is an integer (e.g., year as 20230729).
/contracts/{contract_id}/items/{item_id}/notes — notes is a static string.
The problem is that Prism interprets "notes" as a value for reference_date, always matching the first path and returns a 422 with an error reference_date must be integer
Question:
Is there a way to configure Prism to handle static segments (like /notes) correctly, so they aren't treated as dynamic parameters? Or do we need to modify our OpenAPI spec to avoid this conflict?
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Hi Prism team,
We're encountering a routing issue with Prism where it can't distinguish between two similar paths:
/contracts/{contract_id}/items/{item_id}/{reference_date} — reference_date is an integer (e.g., year as 20230729).
/contracts/{contract_id}/items/{item_id}/notes — notes is a static string.
The problem is that Prism interprets "notes" as a value for reference_date, always matching the first path and returns a 422 with an error reference_date must be integer
Question:
Is there a way to configure Prism to handle static segments (like /notes) correctly, so they aren't treated as dynamic parameters? Or do we need to modify our OpenAPI spec to avoid this conflict?
Thanks for your help!
The text was updated successfully, but these errors were encountered: