FasterXML / FasterXML/jackson-module-jsonSchema

Key type of `Map` valued properties not being added to Schema

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

Description

Looks like `MapVisitor.java` is not doing anything with key type it gets via callback:

``` java
@Override
public void keyFormat(JsonFormatVisitable handler, JavaType keyType)
throws JsonMappingException {
// JSON Schema only allows String types so let's not bother too much
}
```

but it should, since there is some useful information from databinding perspective (enum, time/date types, numbers-as-Strings) and this should be available from `JsonSchema` object.

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.