jsonschema2pojo icon indicating copy to clipboard operation
jsonschema2pojo copied to clipboard

Hi, I'm trying to jsonschema2pojo maven plugin to generate classes from my json schema but classes are not generated eventhough package is created

Open varshape opened this issue 2 years ago • 3 comments
trafficstars

icischema.txt Attaching schema file. could you please help

varshape avatar Jun 23 '23 07:06 varshape

Could you try setting the sourceType to 'json'? The file you attached doesn't look like a json schema file.

joelittlejohn avatar Jun 23 '23 07:06 joelittlejohn

  1. We have the .yaml file to use for generating pojo. Its in open API Spec format. Git is not allowing us to upload .yaml file hence adding the zip file containing the yaml file attachment here. iciv2.zip
  2. We tried the sourceType : 'yamlschema' in the maven plugin, when we run the generate-sources, not running into errors, tagert package is created but no classes are generated. Attaching pom.xml screenshot here. 3 maven_pom

Any suggestions would greatly help. Please suggest.

varshape avatar Jun 23 '23 13:06 varshape

I think maybe you want to use this: https://github.com/OpenAPITools/openapi-generator ?

We don't support OpenAPI specs I'm afraid.

joelittlejohn avatar Jun 23 '23 13:06 joelittlejohn