You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the observation! Looks like the first paragraph you mentioned survived as-is from swagger2 repo, along with some other comments in this file.
There is (in the haddock documentation) a statement that the default ToSchema and ToJSON instances differ in encoding sum types:
openapi3/src/Data/OpenApi.hs
Lines 330 to 333 in 8119d13
However, I think this is outdated and that you create a consistent schema using
oneOf
, as mentioned further down the documentationopenapi3/src/Data/OpenApi.hs
Lines 362 to 364 in 8119d13
Do (default) schemas for sum types agree with aeson, or am I missing something here (I cannot come up with a case where they disagree)?
The text was updated successfully, but these errors were encountered: