@Deprecated
    public AttributeCollector setStringPattern(ObjectNode node, String pattern) {
        if (pattern != null) {
            node.put(SchemaKeyword.TAG_PATTERN.forVersion(SchemaVersion.DRAFT_7), pattern);
        }
        return this;
    }
Setter for "{@link SchemaKeyword#TAG_PATTERN}" attribute (considering Draft 7).

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