public static EnumModule asStringsFromToString() {
        return new EnumModule(Enum::toString);
    }
Factory method: creating an {@link EnumModule} instance that treats all enums as plain strings (derived from each value's toString()).

@return created module instance
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/module/EnumModule.java