-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hello!
Can you please suggest how can I set http Security requirement ?
Due to documentation: https://swagger.io/docs/specification/authentication/basic-authentication/
security requirement should be described as:
security:
- basicAuth:[]
But, when I'm trying to set like that:
$sr = SecurityRequirement::create();
$sr->set('authorization', []);
$operation->addSecurity($sr);
I'm getting exception: does not accept property [authorization]
Probably we need to change following line: calcinai/strut/src/Definitions/SecurityRequirement.php:40
from
protected static $pattern_properties = ['^[a-zA-Z0-9\\.\\-_]+$' => ['string']];
to:
protected static $pattern_properties = ['^[a-zA-Z0-9\\.\\-_]+$' => ['string', 'array']];
?
Thanks!
Best regards,
Alex
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels