Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
validator
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
For Go, I've found https://github.com/deepmap/oapi-codegen/, and it works well.
In node world, we use zod which allows me to pass generated interface from openapi to validation schema, and typescript would force me to provide validation for all of the properties in the generated interface.
In Go I've found this package - https://github.com/go-playground/validator. It seems popular in the community, but it is tag-based. It looks like if I wanted to use it - I would have to basically duplicate structs.