SentinelEmptyListSerializer
Serializer for a list of polymorphic base configurations that additionally understands the scalar sentinel as an explicit spelling of the empty list, and emits sentinel whenever the list is empty.
This exists because Spring Boot cannot express an empty collection. Its YamlProcessor flattens both foo: [] and foo: {} into the empty string for the property foo, indistinguishable from an unresolved shell variable, a blank Helm value or an emptied CI secret. Coercing that blank back into an empty list would mean an accidentally empty environment variable silently switches a security control off, so a deliberate, greppable token is required instead:
attestation:
android:
revocation: DISABLEDBecause the token is a plain scalar it survives every property source unchanged — YAML, properties files, command-line arguments and environment variables alike — and because it round-trips through serialize as well, canonical configuration written by toYamlString()/toJsonString() stays loadable by every format, Spring included.
Matching is case-insensitive on read; sentinel is emitted verbatim on write.