Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Start in MapVisitor.java at the keyFormat(JsonFormatVisitable handler, JavaType keyType) callback and trace how the resulting JsonSchema object represents Map-valued properties. Determine how enum, time/date, and numbers-as-Strings key information is currently represented, then verify that the generated schema exposes the relevant key type information.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Java
Stars
387
Forks
138
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FasterXML/jackson-module-jsonSchema

All issues in FasterXML/jackson-module-jsonSchema

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.