Anypoint Best Practices
nil-union-antipattern
general > nil-union-antipattern
Guidance / Message
Nullable types might lead to null pointer errors.
Use the optional properties instead.
Examples
valid
types:
unionType:
type: date-only|string
example: "Hello, world!"
invalid
types:
unionType:
type: string|nil
example: "Hello, world!"
Applies to AnyShape