using JSON Schema to validate an API