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

Some useful Go packages that are related to using NATS for PWAs #2

Open
oderwat opened this issue Dec 12, 2022 · 1 comment
Open

Some useful Go packages that are related to using NATS for PWAs #2

oderwat opened this issue Dec 12, 2022 · 1 comment

Comments

@oderwat
Copy link
Owner

oderwat commented Dec 12, 2022

Some useful packages

JSON Schema

I think about documenting our services with JSON Schema as part of the service code itself.

The NATS Developers do. Try:

  • nats schema search
  • nats schema info io.nats.jetstream.api.v1.account_info_response | jq .
What is it URL Comment
jsm.go a library to manage and interact with JetStream https://github.com/nats-io/jsm.go Contains a validator and their registry code
JSON Schema from Go Struct https://github.com/invopop/jsonschema
JSON Schema Validator https://github.com/xeipuuv/gojsonschema
Yaml marshalling and unmarshalling https://github.com/invopop/yaml To convert between Yaml and JSON
@gedw99
Copy link
Contributor

gedw99 commented Dec 12, 2022

if you want you can also use the golang jq:

go install github.com/itchyny/gojq/cmd/gojq@latest

nats schema info io.nats.jetstream.api.v1.account_info_response | gojq .

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