Closed JLNNN closed 6 years ago
That error is coming from the internal OpenAPI parser (go-openapi).
The OpenAPI specification specifies that models appear in a definitions
sub-document of the spec.
You have named this section defs
, and while that may be valid JSON, it is not valid OpenAPI, so it will not have been recognised or imported as being part of an OpenAPI specification. So as far as the spec is concerned, you don't have any models defined (no definitions
), and thus dereference #/defs/xxxxx
leads to the error.
Hey,
I've got an issue when using your start script and it took me hours to find out what's the problem. Do you have an idea, WHY this is happening?
https://gist.github.com/JLNNN/fad9b3cd94017172921be71e96b01a67
The only differences in my example files is the naming of "definitions" and "defs" in the $ref.
I'm running the server with ./run_example.sh, this is my config:
This is the output I get when using the not working json:
Greetings, Julian