fastify / fastify/ajv-compiler

Avoid JSON.stringify calls

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
JavaScript
Stars
24
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Yes, it is so right now.

I would open an issue for it and leave it as-is right now

The solutions I see:

- track the [ajv options](https://github.com/ajv-validator/ajv/blob/master/docs/api.md#options) to write a fast-json-stringify function that serialize them instead of `JSON.stringify`
- apply a new logic like:
- check the number of keys
- check iteratively the values (I see only primitive types as values)

_Originally posted by @Eomm in https://github.com/fastify/ajv-compiler/pull/1#discussion_r588874508_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.