There are currently no pipelines.
To run a merge request pipeline, the jobs in the CI/CD configuration file must be configured to run in merge request pipelines.
Created by: wagnerrobsan
Fixes #11932 (closed)
When generating a spring or java code with a spec that contains an attribute with an inline oneOf, the code generator creates a code with a bug.
Currently, before the code generation, the DefaultGenerator validates the schema type, if the schema is an object, it calls the default setTypeProperties method in the IJsonSchemaValidationProperties interface to validate the schema. If the schema is an object, the CodegenModel isMap attribute is set to true, which incorrectly creates the code with an additional method for Map structures.
This simple change modifies the Schema type from object to the OneOf interface created to support the provided sub-subschemas.
./mvnw clean package
./bin/generate-samples.sh
./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
.
For Windows users, please run the script in Git BASH.To run a merge request pipeline, the jobs in the CI/CD configuration file must be configured to run in merge request pipelines.