Closed fjzcxs closed 2 years ago
JSON-RPC library uses OpenAPI 3.0.3 to hack around documentation.
Unfortunately, that version of OpenAPI only supports single example in schema.
OpenAPI library uses jsonschema-go
to reflect schemas and then adapt them to own format.
Here is where first example is taken: https://github.com/swaggest/openapi-go/blob/v0.2.20/openapi3/jsonschema.go#L230
The following seems to be the correct parsing
output
But write the example below, and the one that comes out is different
output
Why are the examples parsed out of these two writing methods different?