AD
Size: a a a
GS
NS
A
G
GS
A
BO
BO
NS
G
NS
G
NS
NS
NS
drf_yasg.errors.SwaggerValidationError: spec validation failed: {'ssv': '("OrderedDict([(\'type\', \'apiKey\'), (\'name\', \'api_key\'), (\'in\', \'header\'), (\'tokenUrl\', \'/auth-token\')]) is not valid under any of the given schemas\\n\\nFailed validating \'oneOf\' in schema[\'properties\'][\'securityDefinitions\'][\'additionalProperties\']:\\n {\'oneOf\': [{\'$rМожет oauth2 нужна? я толком не до конца понимаю что это такое, в примерах есть, но чтото я сомневаюсь
ef\': \'#/definitions/basicAuthenticationSecurity\'},\\n {\'$ref\': \'#/definitions/apiKeySecurity\'},\\n {\'$ref\': \'#/definitions/oauth2ImplicitSecurity\'},\\n {\'$ref\': \'#/definitions/oauth2PasswordSecurity\'},\\n {\'$ref\': \'#/definitions/oauth2ApplicationSecurity\'},\\n {\'$ref\': \'#/definit
ions/oauth2AccessCodeSecurity\'}]}\\n\\nOn instance[\'securityDefinitions\'][\'Token\']:\\n OrderedDict([(\'type\', \'apiKey\'),\\n (\'name\', \'api_key\'),\\n (\'in\', \'header\'),\\n (\'tokenUrl\', \'/auth-token\')])", <ValidationError: "OrderedDict([(\'type\', \'apiKey\'), (\'name\', \'api_key\'), (\'in\', \'header\'
), (\'tokenUrl\', \'/auth-token\')]) is not valid under any of the given schemas">)'}
S
G
drf_yasg.errors.SwaggerValidationError: spec validation failed: {'ssv': '("OrderedDict([(\'type\', \'apiKey\'), (\'name\', \'api_key\'), (\'in\', \'header\'), (\'tokenUrl\', \'/auth-token\')]) is not valid under any of the given schemas\\n\\nFailed validating \'oneOf\' in schema[\'properties\'][\'securityDefinitions\'][\'additionalProperties\']:\\n {\'oneOf\': [{\'$rМожет oauth2 нужна? я толком не до конца понимаю что это такое, в примерах есть, но чтото я сомневаюсь
ef\': \'#/definitions/basicAuthenticationSecurity\'},\\n {\'$ref\': \'#/definitions/apiKeySecurity\'},\\n {\'$ref\': \'#/definitions/oauth2ImplicitSecurity\'},\\n {\'$ref\': \'#/definitions/oauth2PasswordSecurity\'},\\n {\'$ref\': \'#/definitions/oauth2ApplicationSecurity\'},\\n {\'$ref\': \'#/definit
ions/oauth2AccessCodeSecurity\'}]}\\n\\nOn instance[\'securityDefinitions\'][\'Token\']:\\n OrderedDict([(\'type\', \'apiKey\'),\\n (\'name\', \'api_key\'),\\n (\'in\', \'header\'),\\n (\'tokenUrl\', \'/auth-token\')])", <ValidationError: "OrderedDict([(\'type\', \'apiKey\'), (\'name\', \'api_key\'), (\'in\', \'header\'
), (\'tokenUrl\', \'/auth-token\')]) is not valid under any of the given schemas">)'}
NS
BO