swagger-api / swagger-api/swagger-ui

First, you need to fix the syntax errors in the spec:

Open
#7,592 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

anyway there is an error:

image

using:
"darkaonline/l5-swagger": "^8.0", laravel package

doing:
image
image

First, you need to fix the syntax errors in the spec:

  1. Add info.version.
  2. Change
"security": {
  "bearerAuth": []
},

to

"security": [
  {
    "bearerAuth": []
  }
],
  1. Add a description for the 200 response.

Then when you use Swagger UI, click the "Authorize" button and enter your bearer token. Now the request will be sent with the Authorization header.

Originally posted by @hkosova in https://github.com/swagger-api/swagger-ui/issues/3905#issuecomment-344263341

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No Swagger UI file or test is identified; first determine whether the reported behavior is a product defect or an invalid OpenAPI document from the Laravel package. Review the linked issue context and reproduce the spec in Swagger UI if possible. Done means confirming a repository change is needed, or redirecting the report if the listed spec corrections resolve it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, laravel, openapi
Domain
api, documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.