You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find this semantic error by posting it into the swagger editor
Semantic error at paths./test/{foo}.get.parameters.1.name
Path parameter "bar" must have the corresponding {bar} segment in the "/test/{foo}" path
Jump to line 16
But I was not able to find this semantic error. Neither in the swagger-cli or the online tool. According to both the file is valid.
I think it's a regression because the same error in version swagger 2.0 was detected as well :
swagger: "2.0"
info:
title: Sample API
version: v1
host: api.example.com
basePath: /v1
schemes:
- https
paths:
/test/{foo}:
get:
summary: Returns a user by ID.
parameters:
- in: path
name: foo
required: true
type: string
- in: path
name: bar
required: true
type: string
responses:
200:
description: OK
Thank you :-)
The text was updated successfully, but these errors were encountered:
In short, this file contains a semantic error :
You can find this semantic error by posting it into the swagger editor
But I was not able to find this semantic error. Neither in the swagger-cli or the online tool. According to both the file is valid.
I think it's a regression because the same error in version swagger 2.0 was detected as well :
Thank you :-)
The text was updated successfully, but these errors were encountered: