Skip to content
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

Leading / is not detected as error #524

Open
LasneF opened this issue Jul 19, 2024 · 0 comments
Open

Leading / is not detected as error #524

LasneF opened this issue Jul 19, 2024 · 0 comments

Comments

@LasneF
Copy link

LasneF commented Jul 19, 2024

given the file
public-api-docs (1).json

that contains
"paths": {
"v1/webhooks-events": {
"get": {
"tags":

it is not detected as a bug whereas according to OAS spec it is clearly mentionned
"The field name MUST begin with a forward slash (/)."

notice that path support specification extension but those must start with "X"

Expected result : vacuum detecting invalid "properties" / "path" under the paths section

thanks to @szrudi , for raising it as part of this discussion #521

@daveshanley should be something in libopenapi like a condition over there ?
https://github.com/pb33f/libopenapi/blob/main/datamodel/high/v3/paths.go

or even lower ⛏️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant