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

Remove default case in switch case list #999

Conversation

matthias-pichler
Copy link
Collaborator

Please specify parts of this PR update:

  • Specification
  • Schema
  • Examples
  • Extensions
  • Use Cases
  • Community
  • CTK
  • Other

Discussion or Issue link:

#923

What this PR does:

I updated the schema to make the when property required. A defualt case now has to be defined using the task level then property

Additional information:

Signed-off-by: Matthias Pichler <m.pichler@warrify.com>
Signed-off-by: Matthias Pichler <m.pichler@warrify.com>
Signed-off-by: Matthias Pichler <m.pichler@warrify.com>
@matthias-pichler matthias-pichler force-pushed the matthias-pichler/default-case-in-923 branch from 3038990 to 74b87aa Compare August 29, 2024 15:23
Copy link
Member

@cdavernas cdavernas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I commented in the issue, I'm not for removing the default, whenless case, but rather to properly document ordering and the possibility to instead use then.

I wasn't aware a consensus was reached on that aspect, which breaks graphical representation in many contexts, or forces authors to define another useless case.

As said in the issue, it's also a regression from what was done in 0.8/0.9, namely giving the possibility to actually name a default case.

@matthias-pichler matthias-pichler marked this pull request as draft August 29, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants