Replies: 7 comments 6 replies
-
I'm very open to exploring this further. I just committed support for server side validations and this might be a way to improve on that.
|
Beta Was this translation helpful? Give feedback.
-
Ok great . i will have a look at it. |
Beta Was this translation helpful? Give feedback.
-
i see your using https://github.com/go-playground/validator As far as i know that designed for validation of structs and so implies it is only useful at compile time. Cue Lang can be added at runtime, which is complementary to the premise of GraphJin. SO what we need to do is work out the best usage of CueLang for the use cases that we see are pertinent to GraphJib.
Then the architectural implementation of it: How to we want to allow the user at runtime add a CueLang validation ? What do we map a CueLang validation to ? Where do we store the CurLang files ? Pretty sure that the DB is the right place, so that they travel with backup / restore. anything else ? |
Beta Was this translation helpful? Give feedback.
-
@gedw99 Check this out : |
Beta Was this translation helpful? Give feedback.
-
Looks amazing !! This is really great work . But @dosco is right about only one code path . KISS . One step at a time |
Beta Was this translation helpful? Give feedback.
-
Btw I think cuelang is way way off I was inspired by Benthos that added CueLang to act as DSL to allow them to build a GUI on top of Benthos. https://www.benthos.dev/docs/configuration/using_cue/ Cue Lang allowed them to build this gui: https://studio.benthos.dev/. It’s not open source. |
Beta Was this translation helpful? Give feedback.
-
How do you mean? We do support culang for validation. |
Beta Was this translation helpful? Give feedback.
-
I have been playing with Cuelang and golang .
https://cuelang.org/docs/usecases/
https://cuelang.org/docs/usecases/
Cuelang is heavily mated to golang . It even has versioning based on cue.mod and cue.sum.
You can think of it as an interpreted language .
It can pull in json and output json also .
so I was thinking about how it can be used to do server side validation . The user could extend graphjin at runtime in various ways
Workflows where when something change a workflow is kicked off
Data validation for anything that can’t be enforced by the relational constraints that the db provides.
Beta Was this translation helpful? Give feedback.
All reactions