Skip to contents

as_oauth2_security_scheme() turns an existing object into an oauth2_security_scheme. This is in contrast with class_oauth2_security_scheme(), which builds an oauth2_security_scheme from individual properties.

Usage

as_oauth2_security_scheme(x, ...)

Arguments

x

The object to coerce. Must be empty or be a list with an object named "flows" or a name that can be coerced to "flows" via snakecase::to_snake_case(). Additional names are ignored.

...

These dots are for future extensions and must be empty.

Value

An oauth2_security_scheme as returned by class_oauth2_security_scheme().