Reputation: 480
I tried running java -jar openapi-generator-cli.jar generate -i 'swagger.json' -g scala-akka -o scala_client
but it didn't produce any modules (doesn't work with Java nor Clojure).
Running java -jar openapi-generator-cli.jar generate -c config.yaml -i 'swagger.json' -g scala-akka -o scala_client --generate-alias-as-model
(also without config and/or without --generate-alias-as-model
), doesn't produce any model libs either.
Removing "additionalProperties": false,
from the inline schema def makes it generate model classes. What also works is to define the schema using definitions
+ "$ref" : "..."
- but neither of those are feasible with the library I'm using for my server.
I don't quite understand why it won't generate the models. Can't seem to find an answer anywhere, am I missing something simple?
Any help would be much appreciated.
Upvotes: 0
Views: 1716