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
Since #23967 (7.24.0), OpenAPINormalizer rewrites additionalProperties to a nullable any-type schema whenever ModelUtils.isNullTypeSchema matches. That helper also matches a type-less 3.1 schema ({} or true), so a map of "any value" becomes a map of "nullable any value". Generators then emit optional map values.
Actual:additionalProperties: {} and additionalProperties: true come out as {nullable: true}. With swift6 the map becomes [String: JSONValue?], and with kotlin Map<String, JsonElement?>.
Expected:{} and true stay non-nullable any-type, as before 7.24.0. Only an explicit type: "null" should become nullable any-type, which is what #23945 asked for.
openapi-generator version
7.24.0 and later (verified on 7.27.0 and master). 7.22.0 is not affected, so this is a regression.
Activity