Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sfn): can't override toStateJson() from other languages #24593

Merged
merged 1 commit into from
Mar 13, 2023

Commits on Mar 13, 2023

  1. fix(sfn): can't override toStateJson() from other languages

    If any part of a state's JSON representation is `null`, that value will
    be replaced by `undefined` when jsii sends data to the other language,
    resulting in a change of semantics.
    
    Multi-language APIs cannot differentiate between `null` and `undefined`
    as non-JS languages typically fail to distinguish between them... In
    order to address that, a `JsonNull` value was added which serializes to
    `null` (via Javascript's standard `toJSON` method), which must be used
    in such cases where `null` may need to cross the language boundary.
    
    The `JsonPath.DISCARD` value is now a string-token representation of the
    `JsonNull` instance.
    
    Fixes #14639
    RomainMuller committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    10f168e View commit details
    Browse the repository at this point in the history