private boolean shouldAddFormatTag(final ResolvedType javaType, final SchemaGeneratorConfig config) {
            // either OpenAPI extra formats or standard-formats that are registered
            return config.shouldIncludeExtraOpenApiFormatValues()
                    || (config.shouldIncludeStandardFormatValues()
                        && SimpleTypeModule.this.typesWithStandardFormats.contains(javaType.getErasedType()));
        }
Implementation of the {@link CustomDefinitionProviderV2} interface for applying fixed schema definitions for simple java types.
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/module/SimpleTypeModule.java