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

data validation #112

Open
gedw99 opened this issue Jun 12, 2023 · 0 comments
Open

data validation #112

gedw99 opened this issue Jun 12, 2023 · 0 comments
Assignees

Comments

@gedw99
Copy link

gedw99 commented Jun 12, 2023

One thing i keep on getting asked is "whats is the best way to do validation"...

This is really for Producers / Mutations, but also perhaps for Consumers too.

I tend to go for either JSON Schema, just like NATS JSM uses.

But there seems to be pretty good frameworks too:

i see many people using outside NATS is https://ajv.js.org/guide/schema-language.html.

There is 2 options:

  • JSON Schema
  • JSON Type Definition

Language for JSON Type Def:

https://github.com/orgs/jsontypedef/repositories

https://github.com/jsontypedef/json-typedef-go

@bruth bruth self-assigned this Oct 9, 2023
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

No branches or pull requests

2 participants