Skip to content

Confusing Operation Object Example #1007

@ctasada

Description

@ctasada

Describe the bug

The https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#operation-object-example example describes the security field as

  "security": [
    {
     "petstore_auth": [
       "write:pets",
       "read:pets"
     ]
    }
  ],

But none of the Security Schemas match that definition. Based on the format, I may guess the correct example should be:

  "security": [
    {
     "type": "openIdConnect",
    "openIdConnectUrl": "https://example.com/.well-known/openid-configuration",
     "scopes": [
       "write:pets",
       "read:pets"
     ]
    }
  ],

Another alternative would be "type": "oauth2" but then the example would be more complex.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions