Skip to content

Improve CatchErrors schema definition #1036

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

Closed
fjtirado opened this issue Dec 2, 2024 · 0 comments · Fixed by #1035
Closed

Improve CatchErrors schema definition #1036

fjtirado opened this issue Dec 2, 2024 · 0 comments · Fixed by #1035

Comments

@fjtirado
Copy link
Collaborator

fjtirado commented Dec 2, 2024

Currently CatchError definition is an object, which allows specifying anything here
However the idea is that the schema just support definitions of the form

catch:
        errors:
          with:
            type: https://serverlessworkflow.io.io/dsl/errors/types/communication
            status: 404

where elements under with: are of the same name than in error: definition, but optional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant