USE_DEFAULT_PRESENCE

Use the DefaultPresence from the introspector to determine required fields.

Parameters with DefaultPresence.Required are marked as required. Parameters with DefaultPresence.Absent are excluded from required.

Note: This strategy doesn't work reliably with KSP because KSP cannot detect default values in the same compilation unit. For KSP, this behaves the same as ALL_REQUIRED.

Use this strategy with reflection-based introspection where default values are detectable.

Properties

Link copied to clipboard
Link copied to clipboard