spring-data-commons
spring-data-commons copied to clipboard
Expose nullability requirements for PersistentProperty and PreferredConstructor arguments [DATACMNS-1513]
Mark Paluch opened DATACMNS-1513 and commented
PersistentProperty and PreferredConstructor should indicate property/parameter nullability derived from JSR305 (@Nullable, @Nonnull) and Kotlin definitions.
We already provide NullableUtils to determine null/non-null defaults on type level. We should consider nullability indicators and type indicators (primitive types, Kotlin nullability) to express nullability or whether a constructor argument is required
Issue Links:
- DATAMONGO-1849 Generate $jsonSchema out of domain type meta information