Fix response isArray, isMap flags

Merged
WI
4mo ago
+187-12

Fix response isArray, isMap flags
Commented tests will be updated later when we fix the isMapSchema
Add patches to Elm, Protobuf, WSDL generators to keep the old (incorrect) behavior (pending template update to fully work with the fix)

@OpenAPITools/generator-core-team

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

Summary by cubic

Fixes response schema classification in org.openapitools.codegen.DefaultCodegen#fromResponse so array, map, and free‑form object responses set isArray, isMap, and isFreeFormObject correctly and propagate containerType/containerTypeMapped, instead of being treated as models. Adds patches in ElmClientCodegen, ProtobufSchemaCodegen, and WsdlSchemaCodegen to keep object response handling stable pending template updates, updates Java CXF and C# tests, disables two spec-based tests tied to old behavior, and updates WSDL samples.