I think it could be useful to be able to add a more flexible schema definition of the parameters. Such as being able to add the accepted values of the parameter on the Swagger interface.
This could definitely be added already by mucking around with the spec via pr_set_api_spec and modifying the list as necessary, but I definitely think it could be useful to abstract away.
I think it could be useful to be able to add a more flexible schema definition of the parameters. Such as being able to add the accepted values of the parameter on the Swagger interface.
This could definitely be added already by mucking around with the spec via
pr_set_api_spec
and modifying the list as necessary, but I definitely think it could be useful to abstract away.I believe the change would be in the schema here
Here's an example per OpenAPI documentation