ibireme / yyjson

The fastest JSON library in C
https://ibireme.github.io/yyjson/doc/doxygen/html/
MIT License
2.98k stars 262 forks source link

Support Schema validator #156

Closed tuongbuimtt closed 1 week ago

tuongbuimtt commented 5 months ago

Would you have a plan supporting the schema validator?

A function that can validate the input JSON data whether obeys the given JSON schema?

ibireme commented 5 months ago

I once considered supporting JSON schema but found that it requires regex support.

Unfortunately, C doesn't have built-in regex, and adding regex or third-party libraries would complicate things. So, there's no plan to support JSON schema for now.