java.lang.IllegalArgumentException

trying to create the same field twice: additionalProperties

Solutions on the web10013

  • via GitHub by ctrimble
    , 11 months ago
    trying to create the same field twice: additionalProperties
  • trying to create the same field twice: additionalProperties
  • trying to create the same field twice: instance_ int textColourStd; ^
  • Stack trace

    • java.lang.IllegalArgumentException: trying to create the same field twice: additionalProperties at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:425) at com.sun.codemodel.JDefinedClass.field(JDefinedClass.java:396) at org.jsonschema2pojo.rules.AdditionalPropertiesRule.addAdditionalPropertiesField(AdditionalPropertiesRule.java:128) at org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:108) at org.jsonschema2pojo.rules.AdditionalPropertiesRule.apply(AdditionalPropertiesRule.java:43) at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:137) at org.jsonschema2pojo.rules.ObjectRule.apply(ObjectRule.java:72) at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:89) at org.jsonschema2pojo.rules.TypeRule.apply(TypeRule.java:39) at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:73) at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:66) at org.jsonschema2pojo.rules.SchemaRule.apply(SchemaRule.java:30) at org.jsonschema2pojo.SchemaMapper.generate(SchemaMapper.java:88) at org.jsonschema2pojo.Jsonschema2Pojo.generate(Jsonschema2Pojo.java:75) at org.jsonschema2pojo.maven.Jsonschema2PojoMojo.execute(Jsonschema2PojoMojo.java:594)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.