go - GoLang Json Schema Filter -
is there example of how can not validate, limit data based on schema rather struct. not know schema ahead of time (during coding/development). read array of "schemas" in , objects support. don't want output extra, want ensure whatever output limited whats in schema.
example in npm: https://github.com/alank64/json-schema-filter/blob/master/index.js
is there existing way achieve in golang? using xeipuuv/gojsonschema library validate incoming data. incoming data may include fields (which ok in work flow). apis need output in schema security purposes, , need read schema when serving data, , limit resulting record fields available in schema.
Comments
Post a Comment