JSON Schema includes the multipleOf keyword. This is very useful for checking that a number is rounded to a specific number of decimal places.
Keep reading”Rounding errors in JSON Schema validation”→
Keep reading”Sane URL validation in JSON Schema”→
JSON Schema is a very useful tool for validating API requests. Sadly it's not immune to the quagmire of pedantry that is URL validation.
Sign up for my newsletter
A monthly round-up of blog posts, projects, and internet oddments.