Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
14 stars 24 forks source link

Add backend expressions to expression.schema.v1.json #2038

Open framitdavid opened 3 weeks ago

framitdavid commented 3 weeks ago

Description

Background: At Team Studio, we utilize expression.schema.v1.json to validate the construction of expressions and ensure their validity. This works excellently for all front-end expressions. However, as we make the configure processes and expressions that run on the backend, it becomes necessary to incorporate backend expressions into this schema. Without this integration, the StudioExpression component will fail to validate the expression accurately.

Solution Proposal: We propose expanding expression.schema.v1.json to include backend expressions and adding an error message to the app-frontend if anyone attempts to configure a backend expression in the frontend.

Additional Information

https://docs.altinn.studio/app/development/process/flowcontrol/#controlling-flow-out-of-a-gateway-base-on-user-action-performed-using-expressions

olemartinorg commented 3 weeks ago

Jeg la denne til på TODO og koblet til Betaling-roadmapen, ref denne diskusjonen:

Sitat fra David:

For Studio sin del hadde det vært fint å fått inn gatewayAction slik at vi kan levere på betaling fra vår side.