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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -