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
add parameters on router #2104
Comments
use |
Uh what? So y'all literally have it documented like
On your docs, but it doesn't actually work unless you use a |
Not only that, but in standard VS code (with standard go extension) it will auto format the If anybody is interested this is the pace in the code that requires the |
My workaround is to use // swagger:route GET /users/{id} User GetUsers
// ---
// Some text...
//
// Parameters:
// - +name: id
// in: path
// type: string
// required: true
//
// Responses:
// - 200: UserResponse |
My Code:
run: swagger generate spec -o swagger.yml -m
output:
operation (sendSms): invalid route/operation schema provided
Code:
generate success, but cat swagger.yml:
parameters schema is missing.
What can I add parameters link to model?
The text was updated successfully, but these errors were encountered: