嵌套可选联合会自动丢弃 JSON 数据包

作者: g-logunov创建于 2026年9月24日更新于 2026年9月24日

An OpenAPI 3.1 nullable wrapper around an inline `oneOf` or `anyOf` generates a union struct without its JSON methods. Generation succeeds, but unmarshalling and then marshalling silently drops the union payload.

内容来源: oapi-codegen/oapi-codegen