We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Spec: https://gist.githubusercontent.com/hkosova/49dc5ed081cf553e01a1182e11b2e4ca/raw/5ea6988984bd8a0c0b3a506ac13b9dac396a74bc/param-ref.yaml
swagger: '2.0' info: version: '1.0' title: Parameter references paths: /report/{userId}: get: parameters: - $ref: '#/parameters/userIdParam' - $ref: '#/parameters/dateRangeParam' responses: 200: description: OK /formPost: post: consumes: - application/x-www-form-urlencoded parameters: - $ref: '#/parameters/formEmail' - $ref: '#/parameters/formPassword' responses: 200: description: OK /bodyPost: post: consumes: - application/json parameters: - $ref: '#/parameters/bodyParam' responses: 200: description: OK parameters: dateRangeParam: in: query name: dateRange type: string enum: - Today - Yesterday - LastWeek default: Today userIdParam: in: path name: userId type: integer required: true formEmail: in: formData name: email type: string format: email required: true formPassword: in: formData name: password type: string format: password required: true bodyParam: in: body name: body required: true schema: type: object properties: status: type: string required: - status
Problems:
$ref
parameters: - schema: $ref: '#/parameters/userIdParam' - schema: $ref: '#/parameters/dateRangeParam'
Should be:
parameters: - $ref: '#/components/schemas/userIdParam' - $ref: '#/components/schemas/dateRangeParam'
requestBody
The text was updated successfully, but these errors were encountered:
Fixed:
Not fixed:
#/components/parameters
#/components/requestBodies
Sorry, something went wrong.
No branches or pull requests
Spec: https://gist.githubusercontent.com/hkosova/49dc5ed081cf553e01a1182e11b2e4ca/raw/5ea6988984bd8a0c0b3a506ac13b9dac396a74bc/param-ref.yaml
Problems:
$ref
s are converted to:Should be:
requestBody
instead.The text was updated successfully, but these errors were encountered: