Skip to content

Define function input schemas for operations with securitySchemes #806

Closed
@paarthdassani

Description

@paarthdassani

What would you like to be added:
An implicit schema should be defined for the function arguments based on the securitySchemes defined in the asyncapi/openapi operation.

Why is this needed:
Different securitySchemes entail different types of inputs from the users.
Eg: basic auth scheme in the openapi spec should translate to "username" and "password" input keys in the function arguments. The runtime should then handle them as defined by the openapi spec.

There could be different such expected inputs for different securitySchemes.
Leaving these to the implementations could affect portability across runtimes, so there should be some behavior defined by the spec to handle these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions