java.lang.RuntimeException

Could not process model 'MyModel'.Please make sure that your schema is correct!

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web6

  • via GitHub by razalur
    ,
  • Stack trace

    • java.lang.RuntimeException: Could not process model 'MyModel'.Please make sure that your schema is correct! at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:290) at io.swagger.codegen.cmd.Generate.run(Generate.java:223) at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:36) Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at io.swagger.codegen.languages.SwiftCodegen.fromProperty(SwiftCodegen.java:339) at io.swagger.codegen.DefaultCodegen.addVars(DefaultCodegen.java:2695) at io.swagger.codegen.DefaultCodegen.addVars(DefaultCodegen.java:2666) at io.swagger.codegen.DefaultCodegen.addVars(DefaultCodegen.java:2652) at io.swagger.codegen.DefaultCodegen.fromModel(DefaultCodegen.java:1268) at io.swagger.codegen.DefaultGenerator.processModels(DefaultGenerator.java:868) at io.swagger.codegen.DefaultGenerator.generate(DefaultGenerator.java:283) ... 2 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.