java.lang.RuntimeException: Could not process model 'Vehicle'.Please make sure that your schema is correct!

GitHub | karussell | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Several clients break due to model 'break'

    GitHub | 5 months ago | karussell
    java.lang.RuntimeException: Could not process model 'Vehicle'.Please make sure that your schema is correct!

    Root Cause Analysis

    1. java.lang.RuntimeException

      Break (reserved word) cannot be used as a model name

      at io.swagger.codegen.languages.DartClientCodegen.toModelName()
    2. io.swagger.codegen
      DartClientCodegen.getSwaggerType
      1. io.swagger.codegen.languages.DartClientCodegen.toModelName(DartClientCodegen.java:212)
      2. io.swagger.codegen.languages.DartClientCodegen.getSwaggerType(DartClientCodegen.java:267)
      2 frames