@Override
    public ObjectNode generateSchema() {
        SchemaGeneratorConfigBuilder configBuilder = new SchemaGeneratorConfigBuilder(SchemaVersion.DRAFT_2020_12, OptionPreset.PLAIN_JSON);
        configBuilder.forTypesInGeneral()
                .withCustomDefinitionProvider(new EnumMapDefinitionProvider(enumValue -> enumValue.name().toLowerCase()));
        SchemaGeneratorConfig config = configBuilder.build();
        SchemaGenerator generator = new SchemaGenerator(config);
        return generator.generateSchema(Map.class, Job.class, JobDetails.class);
    }
Example created in response to <a href="https://github.com/victools/jsonschema-generator/discussions/376">#376</a>.
<br/>
Representing a Map containing Enum values as keys.
jsonschema-examples/src/main/java/com/github/victools/jsonschema/examples/EnumMapExample.java