swaggest/go-code-builder

OneOf constraint based on availability of required properties fails

Closed this issue · 1 comments

Required properties need to be rendered as nullable and nil-check should be performed on (un)marshaling. This will allow correct processing of oneOf structures.

It turned out the feature is already there, but need to to be enabled with validateRequired.