class OasRails::Spec::Specification
def security
- See: https://spec.openapis.org/oas/latest.html#security-requirement-object -
def security return [] unless OasRails.config.authenticate_all_routes_by_default OasRails.config.security_schemas.map { |key, _| { key => [] } } end