Skip to content

Consider authorization for OpenAPI request examples #606

Discussion options

You must be logged in to vote

Hey @arredond, sorry for the delay, here's what I found

In your specification, it looks like both paths you provided in your screenshot don't have the security property. Is this intentional?

If you add the security property like this inside your paths, it will work with our updated OpenAPI blocks.

"security": [
    {
        "bearerAuth": []
    }
]

Some of your endpoints already have the security property (see example)

For the “Try it” feature, it displays available securitySchemes (even if they are not required for this endpoint). This is normal for testing the endpoint, but we won’t add it inside the block, as it could be misleading.

Let me know if you run into any other issues, happy …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@arredond
Comment options

@addisonschultz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nolannbiron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pa-editor-and-content-blocks Writing, structuring and creating content, complex content blocks (tables, Swagger, etc.) and overa
3 participants