jackson-module-jsonSchema icon indicating copy to clipboard operation
jackson-module-jsonSchema copied to clipboard

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

Open cowtowncoder opened this issue 10 years ago • 0 comments

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

    @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.

cowtowncoder avatar Nov 21 '15 02:11 cowtowncoder