karenetheridge / JSON-Schema-Modern

Validate data against a schema using a JSON Schema
https://metacpan.org/release/JSON-Schema-Modern/
Other
10 stars 1 forks source link

feature: support streaming data in place of strings #82

Open karenetheridge opened 8 months ago

karenetheridge commented 8 months ago

Some strings, e.g. from an HTTP request or response body, might be huge, and copying them around might be useless anyway if they are not validated (e.g. just their existence is needed, and keywords like pattern are not always applied to them). In these cases it could be helpful to pass them around in the data payload as a scalar reference or a streamed object (Mojo::Content::Single).

Therefore the keywords that are valid against strings should recognize these types: