Parses and validates path parameters using a provided schema.

  • If the validation fails or if the schema is provided without path parameters.