mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 06:30:52 +00:00
[codegen] Fix 'super.HashCode' for oneOf and allOf Implementations (retry) (#5830)
* Added hasVars after completion of all model post-processing (#5587) * Post ensure-up-to-date * Update to check the size of vars and not assume non-null
This commit is contained in:
parent
7efa65164a
commit
2ff9be6f95
@ -2320,6 +2320,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
for (CodegenProperty prop : m.vars) {
|
for (CodegenProperty prop : m.vars) {
|
||||||
postProcessModelProperty(m, prop);
|
postProcessModelProperty(m, prop);
|
||||||
}
|
}
|
||||||
|
m.hasVars = m.vars.size() > 0;
|
||||||
}
|
}
|
||||||
if (m.allVars != null) {
|
if (m.allVars != null) {
|
||||||
for (CodegenProperty prop : m.allVars) {
|
for (CodegenProperty prop : m.allVars) {
|
||||||
|
@ -1 +1 @@
|
|||||||
4.3.0-SNAPSHOT
|
4.3.1-SNAPSHOT
|
@ -245,6 +245,13 @@ CREATE TABLE IF NOT EXISTS `EnumArrays` (
|
|||||||
`array_enum` JSON DEFAULT NULL
|
`array_enum` JSON DEFAULT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `EnumClass` generated from model 'EnumClass'
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `EnumClass` (
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `Enum_Test` generated from model 'EnumUnderscoreTest'
|
-- Table structure for table `Enum_Test` generated from model 'EnumUnderscoreTest'
|
||||||
--
|
--
|
||||||
@ -377,6 +384,13 @@ CREATE TABLE IF NOT EXISTS `OuterComposite` (
|
|||||||
`my_boolean` TINYINT(1) DEFAULT NULL
|
`my_boolean` TINYINT(1) DEFAULT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `OuterEnum` generated from model 'OuterEnum'
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `OuterEnum` (
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `Pet` generated from model 'Pet'
|
-- Table structure for table `Pet` generated from model 'Pet'
|
||||||
--
|
--
|
||||||
|
@ -1 +1 @@
|
|||||||
4.3.0-SNAPSHOT
|
4.3.1-SNAPSHOT
|
Loading…
x
Reference in New Issue
Block a user