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
Hi,
I tried to use the tool and I had endpoints with path variables, such as PUT /api/tables/{id}. I added default value to this id param (to be specific, it was a UUID) in my OpenAPI 2.0 schema and I expected the following. Prism will parse this default value and provide me a static endpoint (probably be strict with the suffix, so if I pass anything other then the default value, I would get error status in the response), like: PUT http://0.0.0.0:4010/api/tables/b4d93db2-13b3-4be3-8d63-f97fdabf9536, however I found there a random string on my console (which changes every restart, it was something like: PUT http://0.0.0.0:4010/api/tables/magnam ).
I tried with my expected input and returned the mocked response, but the console logs looked weird anyway, is there any reason why you're showing random string instead of default values?
I'm really curious.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I tried to use the tool and I had endpoints with path variables, such as
PUT /api/tables/{id}
. I added default value to this id param (to be specific, it was a UUID) in my OpenAPI 2.0 schema and I expected the following. Prism will parse this default value and provide me a static endpoint (probably be strict with the suffix, so if I pass anything other then the default value, I would get error status in the response), like:PUT http://0.0.0.0:4010/api/tables/b4d93db2-13b3-4be3-8d63-f97fdabf9536
, however I found there a random string on my console (which changes every restart, it was something like:PUT http://0.0.0.0:4010/api/tables/magnam
).I tried with my expected input and returned the mocked response, but the console logs looked weird anyway, is there any reason why you're showing random string instead of default values?
I'm really curious.
Beta Was this translation helpful? Give feedback.
All reactions