FasterXML / FasterXML/jackson-module-jsonSchema

Incomplete type definition for array/Collection properties

Open
#45 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
387
Forks
136
PR merge metrics
No merged PRs in 30d

Description

NOTE: cleaved off of #34

---

This bug seems not to be completely fixed. It doesn't throw a NPE anymore, but it doesn't generate the schema correctly either. It just generates:

``` json
{
"type":"array"
}
```

I extended the test to use a collection of nested beans, and expected to see the schema of the nested items, e.g.:

``` json
{
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"property1" : {
"type" : "integer"
},
"property2" : {
"type" : "string"
}
}
}
}
```

See updated test: https://github.com/greyfairer/jackson-module-jsonSchema/commit/2a9b859fac14a412de68917655c9cf928d31d651

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.