The path variable needs to be of type number, but we found "{{id}}"

This is not a fully working API, I just created a schema in swagger and a mock server in Postman. When trying to validate I’m getting multiple issues.

I’m having a problem with my requests that need an id to retrieve a single user. This id is retrieved when fetching all users and it just picks out a random one. The variable is set to the environment and not empty, yet I’m receiving the following error message:

The path variable “id” needs to be of type number, but we found “{{id}}”

Why is this happening? How can i fix this issue? It’s so weird because the requests work properly, but when trying to validate I’m always getting this error.

Hey @tombjarne96

Welcome to the community! :trophy:

Are you able to provide some examples of this and what this looks like for you in the app please? This will help people to see the issue you’re facing and be able to offer solutions.

Are you running this in the Collection Runner? Do you have the environment selected before the run?