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
Given piece of code:
implicit final val RedirectSwagger: MkSwagger[Complete[Redirect]] = MkSwagger.single[Complete[Redirect]]( OpenApiOp( responses = OpenApiResponses( codes = Map(Found.intValue -> OpenApiResponse( description = "Редирект на страницу".some, headers = Map(Location.name -> SwaggerStringValue(pattern = """https:\/\/(?:.+)?""".some)) )) ) ), TreeMap.empty )
... generates invalid format:
"302": { "description": "Редирект на страницу", "content": {}, "headers": { "Location": { "pattern": "https:\\/\\/(?:.+)?", "type": "string" } } }
Correct example in spec:
"headers": { "X-Rate-Limit-Limit": { "description": "The number of allowed requests in the current period", "schema": { "type": "integer" } } }
The text was updated successfully, but these errors were encountered:
Fix response headers swagger tofu-tf#232
1536061
Fixed in #236
Sorry, something went wrong.
Merge pull request #236 from ulanzetz/master
a97c54c
Fix response headers swagger #232
No branches or pull requests
Given piece of code:
... generates invalid format:
Correct example in spec:
The text was updated successfully, but these errors were encountered: