tfranzel / drf-spectacular

Sane and flexible OpenAPI 3 schema generation for Django REST framework.
https://drf-spectacular.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.39k stars 264 forks source link

Support `djangorestframework-dataclasses` `Union` type #1061

Open johnthagen opened 1 year ago

johnthagen commented 1 year ago

This PR added support for Union types in djangorestframework-dataclasses

I wasn't sure if drf-spectacular would need to be adjusted to support this or not? Just wanted to report it here for awareness as this is an exciting new feature.

It was released in 1.3.0

awwithro commented 1 year ago

This would be very handy, I'm currently trying to get this to work myself. As is, it currently throws a warning could not resolve serializer field "UnionField...