Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses issue #66
zod is quickly growing in popularity as a json-schema validator. It is now added to the benchmark so it can be compared with the other validators.
Result of running
node index.js
in the terminal (zod is highlighted). I commented out the part of the code that limits the logging to the top 6 results, so that all validators are shown for comparison. Also note that the current sorting (which I did not modify) is from least to greatest number of failing tests.Draft 7 test suite:
![draft7](https://private-user-images.githubusercontent.com/28958079/237843863-0b897652-700d-4db7-8cb0-f97a8c92f650.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzYwNzYsIm5iZiI6MTczOTM3NTc3NiwicGF0aCI6Ii8yODk1ODA3OS8yMzc4NDM4NjMtMGI4OTc2NTItNzAwZC00ZGI3LThjYjAtZjk3YThjOTJmNjUwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE1NTYxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQzZDc2NTE0MGRlNTZkYzg2NWVmMjU2YWMwYmI5NDMzMjQ2M2Y0OWQwNjc0MDA0N2NiMDQ5ZTJmYzZmMmIwN2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YIH7Uf5_B0kt5XFOLqi_9jC8ozNChd95Q1XkHx99JhU)
Draft 6 test suite:
![draft6](https://private-user-images.githubusercontent.com/28958079/237843917-e0579c24-4426-46b6-bd72-345ca91d2ece.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzYwNzYsIm5iZiI6MTczOTM3NTc3NiwicGF0aCI6Ii8yODk1ODA3OS8yMzc4NDM5MTctZTA1NzljMjQtNDQyNi00NmI2LWJkNzItMzQ1Y2E5MWQyZWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE1NTYxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2NmZkNzViOWQwMzliYTUzYWVlMGJiZDE1NGNhZmY2YjcxYTllYzU2NDY3YmFlYzQ0NTk1ZmExNzA4NGMyYzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-V3LZ33DqWJvmOPeIYx4eN1R5QxWaDIZ8Iw3oVjcHoY)
Draft 4 test suite:
![draft4](https://private-user-images.githubusercontent.com/28958079/237843921-dd2629bb-af5b-4474-80aa-01dd9cc9aaf5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6Imtle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