pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

Make `validate_json` accept `memoryview`.

Open peter-facko opened this issue 10 months ago • 1 comments

Hello, would it be possible to make the validate_json function accept memoryview? Currently, it doesn't and it means unnecessarily copying data to make a bytes object.

peter-facko avatar May 01 '24 15:05 peter-facko