File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ func (ss *SecurityScheme) Validate(c context.Context) error {
115115 switch scheme {
116116 case "bearer" :
117117 hasBearerFormat = true
118- case "basic" :
118+ case "basic" , "negotiate" , "digest" :
119119 default :
120120 return fmt .Errorf ("Security scheme of type 'http' has invalid 'scheme' value '%s'" , scheme )
121121 }
Original file line number Diff line number Diff line change @@ -46,6 +46,26 @@ var securitySchemeExamples = []securitySchemeExample{
4646` ),
4747 valid : true ,
4848 },
49+ {
50+ title : "Negotiate Authentication Sample" ,
51+ raw : []byte (`
52+ {
53+ "type": "http",
54+ "scheme": "negotiate"
55+ }
56+ ` ),
57+ valid : true ,
58+ },
59+ {
60+ title : "Unknown http Authentication Sample" ,
61+ raw : []byte (`
62+ {
63+ "type": "http",
64+ "scheme": "notvalid"
65+ }
66+ ` ),
67+ valid : false ,
68+ },
4969 {
5070 title : "API Key Sample" ,
5171 raw : []byte (`
You can’t perform that action at this time.
0 commit comments