-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On using validatePaths option #118
Comments
+1 |
Hey @WHKL-9, one exmaple of
This will make sure that all paths like |
Hey @supertong , thanks for your reply ! Sorry, I think I was not clear enough. I have requests that they have dynamic id's in the middle of the request path like: The best case scenario for me would be actually that I want only to validate paths of requests that are specified in the The reason is that I have a backend with many routes setup and I want to use the oas middleware to start validating the routes from the open api spec, but I don't want to add already all the requests to the spec, I want to do it gradually. So if I add the route path spec to the open api schema I want that the validation is triggered, otherwise if there's any other request o my routes that are not in the open api schema I want to skip the validation so oas3 do not throw an error like could not find path. |
Hey @WHKL-9, that makes sense. Unfortunately, the
|
yes I think I would. Thank you so much for getting in touch again! @supertong |
Hi, I am trying to use this validatePaths option. Looked into your source code and see you guys are using it with the .
startWith()
method. Can you provide some concrete examples of how to use that?An example I was trying=>
customer/:id/setup-accounts
I tried the validatePath option but it didn't get validated because it might fail with the
startWith
method in thevalidatePath
option.The best-case scenario is that I could want to validate the path inside my
yaml/json file
and skip the validation for requests that are not in the spec.Looking forward to your reply and have a nice day!
The text was updated successfully, but these errors were encountered: