Jan

Results 157 comments of Jan

What is the intended use case for this? Is it protecting immutable attributes such as `_id`, `_rev` and such?

Yes, sounds useful. I think the most generic approach will be to allow users to register classes or callbacks that do the validation, maybe together with providing some default validators....

@retpoline : Thanks for the bug report. I fully agree this should be fixed. Will look into it.

@retpoline : I have created a PR with a potential fix for the problem: https://github.com/arangodb/velocypack/pull/110 Do you mind trying if the changes in the PR fix the problem you reported?...

@retpoline : we'll try to integrate the fuzzer into our testing. Thanks for bringing up the issue!

@retpoline : for info, we tried running litefuzz ourselves, and it produced a few additional issues. These should be fixed via https://github.com/arangodb/velocypack/pull/111.

There is a document in progress, but it is currently internal and subject to change. Therefore for now I suggest looking at either the [Java driver's implementation of VelocyStream](https://github.com/arangodb/arangodb-java-driver/tree/4.1/src/main/java/com/arangodb/internal/velocystream) or...

VelocyPack has a Double type for floating-point values, but it is only double precision. That means converting a C# decimal into a VelocyPack Double value would lead to precision loss....

I originally coded it like this to let the user decide if the full exception message is needed or not. If that's more work, I don't mind if we always...

There is a class named `velocypack::Validator`, which can be used for input validation. It has a [validate method](https://github.com/arangodb/velocypack/blob/master/src/Validator.cpp#L70) which should be given a pointer to the input plus the length...