Skip to content

Commit

Permalink
Deprecate the pattern property for SDS Standard Pattern Attributes (#…
Browse files Browse the repository at this point in the history
…2216)

Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 5, 2024
1 parent 583ef7a commit 44f1a3d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-02-29 14:49:28.620983",
"spec_repo_commit": "bb5305bc"
"regenerated": "2024-03-05 16:47:40.400167",
"spec_repo_commit": "acf036aa"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-02-29 14:49:28.636025",
"spec_repo_commit": "bb5305bc"
"regenerated": "2024-03-05 16:47:40.419569",
"spec_repo_commit": "acf036aa"
}
}
}
5 changes: 4 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18316,7 +18316,10 @@ components:
description: Name of the standard pattern.
type: string
pattern:
description: Regex to match.
deprecated: true
description: (Deprecated) Regex to match, optionally documented for older
standard rules. Refer to the `description` field to understand what the
rule does.
type: string
priority:
description: Integer from 1 (high) to 5 (low) indicating standard pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,21 @@ public SensitiveDataScannerStandardPatternAttributes pattern(String pattern) {
}

/**
* Regex to match.
* (Deprecated) Regex to match, optionally documented for older standard rules. Refer to the
* <code>description</code> field to understand what the rule does.
*
* @return pattern
* @deprecated
*/
@Deprecated
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PATTERN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPattern() {
return pattern;
}

@Deprecated
public void setPattern(String pattern) {
this.pattern = pattern;
}
Expand Down

0 comments on commit 44f1a3d

Please sign in to comment.