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
Add Boolean fields to Data classes for supporting sparse update (#664)
* added support for bitset for data types
* added support for bitset for all data types
* initialize bitset
* generate setField conditionally
* bug fixes
* adding unit tests
* cleanup
* Revert "cleanup"
This reverts commit f21e6af.
* cleanup
* updated flag name, CodeGenCliKt.run.xml
* added additional unit test without field isset
* Added descriptive help for CLI flag
* refactor builder function
* add parameters to enum constructor
* fix linting
* Revert "fix linting"
This reverts commit cd71b3a.
* fix linting, unit tests
* updating linting
* add field is set to generateJava
* Revert "add field is set to generateJava"
This reverts commit b5c7af4.
* Revert "updating linting"
This reverts commit b3513ef.
* Revert "fix linting, unit tests"
This reverts commit 7a1d567.
* update generateJava, formatting
* revert xml changes
* linting fix
* updating isSet and setField to public
* update boolean fields
* cleanup
* update boolean field generation with tests
* updating unit tests
* updating unit tests
* formatting Kotlin
* Revert "formatting Kotlin"
This reverts commit 5d76a5e.
* formatting Kotlin
* updating boolean field and setter names
* update EntitiesClientApiGenTest and ClientApiGenQueryTest
* fix more tests
* bug fix
* format kotlin
* fix unit tests
* update boolean fields
* cleanup
* fix: adding is nullable for input types
* fix: adding javapoet formatting
* fix: Adding fields for non-nullable without defaults
* cleanup
* addressing comments
* cleanup
---------
Co-authored-by: kkatelia <[email protected]>
Copy file name to clipboardExpand all lines: graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/generators/java/DataTypeGenerator.kt
@@ -390,13 +440,21 @@ abstract class BaseDataTypeGenerator(
390
440
391
441
val setterName = typeUtils.transformIfDefaultClassMethodExists("set${fieldDefinition.name[0].uppercase()}${fieldDefinition.name.substring(1)}", TypeUtils.Companion.setClass)
392
442
val parameterBuilder =ParameterSpec.builder(returnType, ReservedKeywordSanitizer.sanitize(fieldDefinition.name))
443
+
393
444
val setterMethodBuilder =MethodSpec.methodBuilder(setterName)
0 commit comments