FasterXML / jackson-module-jsonSchema

Module for generating JSON Schema (v3) definitions from POJOs
371 stars 135 forks source link

About schema validation #123

Closed cqwcent closed 7 years ago

cqwcent commented 7 years ago

Hi, I am facing some problem validating the schema generated by JsonSchemaGenerator. I do not have any problem if I do not have any JsonProperty(required=true) to any of the fields. But once I add one, schema validation will fail. Btw, I'm using com.github.fge.jsonschema.main.JsonSchemaFactory this package. The report is like "required" is expected to be ["array"] but found boolean. Can some one please help?

Thanks.

cowtowncoder commented 7 years ago

@cqwcent This issue tracker is for reporting issues against json schema module, not a general-purpose support forum. It sounds like you are having problems validating content using a validator; probably this one:

https://github.com/java-json-tools/json-schema-validator

If so, you'd need to find a forum for its user; or, if you think it is a bug in validator, file issue against that package.