@Deprecated
    public AttributeCollector setEnum(ObjectNode node, Collection<?> enumValues) {
        if (enumValues != null) {
            SchemaVersion schemaVersion = SchemaVersion.DRAFT_7;
            List<Object> values = enumValues.stream()
                    .filter(this::isSupportedEnumValue)
                    .filter(this::canBeConvertedToString)
                    .collect(Collectors.toList());
            if (values.size() == 1) {
                this.addRawPropertyValue(node, SchemaKeyword.TAG_CONST.forVersion(schemaVersion), values.get(0));
            } else if (!values.isEmpty()) {
                ArrayNode array = node.arrayNode();
                values.forEach(singleValue -> this.addRawArrayItem(array, singleValue));
                node.set(SchemaKeyword.TAG_ENUM.forVersion(schemaVersion), array);
            }
        }
        return this;
    }
Setter for "{@link SchemaKeyword#TAG_CONST}"/"{@link SchemaKeyword#TAG_ENUM}" attribute (considering Draft 7).

@param node schema node to set attribute on
@param enumValues attribute value to set
@return this instance (for chaining)
@deprecated use {@link #setEnum(ObjectNode, Collection, SchemaGenerationContext)} instead
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/AttributeCollector.java