11 ms·
I see. I would still recommend JSON schema, though. It is great for debugging and ideal if you plan to open the API up to third party developers, because it mak
by NathanKP 14y ago
I see. I would still recommend JSON schema, though. It is great for debugging and ideal if you plan to open the API up to third party developers, because it makes it easy to ensure that all NoSQL data adheres to a proper schema, and it also provides meaningful error messages if a third party developer accidentally sends badly structured JSON to your service, or even if you accidentally send badly structured JSON to your service due to a front end bug.
I use this JSON Schema validator with great success: http://packagist.org/packages/hasbridge/json-schema-validator http://packagist.org/packages/hasbridge/json-schema-validato...