drf-yasg icon indicating copy to clipboard operation
drf-yasg copied to clipboard

"instance failed to match exactly one schema (matched 0 out of 2)"

Open vpolimenov opened this issue 3 years ago • 1 comments

Hello,

Just to follow up on this old issue, as I am getting the same validation error at the moment. https://github.com/marcgibbons/django-rest-swagger/issues/586

Error

 {"schemaValidationMessages":[{"level":"error","domain":"validation","keyword":"oneOf","message":"instance failed to match exactly one schema (matched 0 out of 2)","schema":{"loadingURI":"http://swagger.io/v2/schema.json#","pointer":"/definitions/parametersList/items"},"instance":{"pointer":"/paths/~1api~1v4~1authorization~1register/post/parameters/2"}}]}

Versions:

drf-yasg v. 1.20
djangorestframework v. 3.12.2
django v. 3.1.13
python 3.6.12

vpolimenov avatar Aug 03 '21 11:08 vpolimenov

@vpolimenov Could you give us the full stack trace and a minimal setup to reproduce the isssue?

JoelLefkowitz avatar Sep 22 '21 16:09 JoelLefkowitz