openzipkin / zipkin-api

Zipkin's language independent model and HTTP Api Definitions
https://zipkin.io/zipkin-api/
Apache License 2.0
59 stars 32 forks source link

Add unit test to show that the swagger generated POST request is actually valid #71

Open codefromthecrypt opened 5 years ago

codefromthecrypt commented 5 years ago

In #51, we learned there are some subtleties about how openapi/swagger generates requests. These may be generator specific, but it could help to have something in a test that shows the POST request actually implies a ListOfSpans payload as opposed to a "spans" -> ListOfSpans. This can be more helpful as we consider moving forward with swagger versions.

cc @drolando in case you know the swag(ger)