public static EnumModule asObjects() {
        return new EnumModule(null);
    }
Factory method: creating an {@link EnumModule} instance that treats all enums as objects but hides all methods declared by the general enum
interface but {@link Enum#name() name()}. Methods and fields (including the enum constants) declared by their subtypes are not excluded.

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