go to post Adam Coppola · May 19, 2020 You are getting an"invalid JSON" error because the JSON you're POSTing is itself the OpenAPI 2.0 JSON Schema File. It defines how the standard works in JSON. Instead, you'll need to post an OpenAPI document, abiding by those standards, defining your RESTful service.More info here: https://swagger.io/specification/