Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

[BUG] expression object is filled with default values #569

Closed
igarashitm opened this issue Mar 24, 2023 · 1 comment · Fixed by #578
Closed

[BUG] expression object is filled with default values #569

igarashitm opened this issue Mar 24, 2023 · 1 comment · Fixed by #578
Assignees
Labels
bug Something isn't working

Comments

@igarashitm
Copy link
Contributor

igarashitm commented Mar 24, 2023

Describe the bug
A variation of #503

expression object is filled with default values after code sync

To Reproduce
Steps to reproduce the behavior:

  1. Open source code editor
  2. Paste this code
- from:
    uri: timer:null
    steps:
      - choice:
          when:
            - expression:
                simple:
                  expression: choice
  1. Click sync your code
  2. YAML is updated with default values
- from:
    uri: timer:null
    steps:
    - choice:
        when:
        - expression:
            simple:
              expression: choice
              trim: false
              result-type: 'null'
              id: 'null'
          steps: []

Expected behavior
Default values are wiped out

Logs
If applicable, add logs to help explain your problem.

Environment (please complete the following information):

Additional context
Add any other context about the problem here.

@igarashitm igarashitm added the bug Something isn't working label Mar 24, 2023
@igarashitm igarashitm self-assigned this Mar 24, 2023
@igarashitm
Copy link
Contributor Author

igarashitm commented Mar 24, 2023

It looks nasty, not sure if default values are even accessible for sub properties of object property... even worse is that at some point the property value is converted from null to a String literal "null"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant