joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc

Home Page:http://www.jsonschema2pojo.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

varshape opened this issue · comments

icischema.txt
Attaching schema file. could you please help

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

  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.

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

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