santhosh-tekuri / jsonschema

JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation using Go
Apache License 2.0
957 stars 98 forks source link

feat: support truncated output and validation error should write in buffer #110

Open zedongh opened 1 year ago

zedongh commented 1 year ago

for large file validation will cause mess error and output will be huge:

  1. support tuncated output should first level validation error
  2. validationError GoString concat using byte Buffer for better performance
santhosh-tekuri commented 1 year ago

could you please create individual PR for each commit.

regarding the truncated output, it needs some evaluation from my side and takes time.

since GoString change is simpler and straight forward, having separate PR will help in merge early;

zedongh commented 1 year ago

ok,my pleasure here #111

And, for truncate commit, hope jv support -flag truncate, print few error and stop, rather than print all of error.