Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key type of Map valued properties not being added to Schema #89

Open
cowtowncoder opened this issue Nov 21, 2015 · 0 comments
Open

Key type of Map valued properties not being added to Schema #89

cowtowncoder opened this issue Nov 21, 2015 · 0 comments

Comments

@cowtowncoder
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant