/jsonmystery

Investigate how to use JSON schema in vert.x

Primary LanguageJava

Jsonmystery

vert.x 4.0.0.Beta3 purple

Experimenting with JSON Schema validation

Purpose

Testing JSON submissions against JSON Schema. In a web context this isn’t actually necessary, since Vert.x OpenAPI takes care of it. So don’t get distracted here, the purpose is to test JSON schema validation for JSON that happened to come via a different path (e.g eventbus)

Supported endpoints:

  • GET Just a message [/]

  • POST a traffic light [/trafficlight]

  • POST a street (contains traffic lights) [/street]

Building

To launch your tests:

./mvnw clean test

To package your application:

./mvnw clean package

To run your application:

./mvnw clean compile exec:java

Help