Skip to content

Commit 8d6c1c0

Browse files
authored
Make PatternRecognizer.context optional, as having a default is not enough (#25941)
* Make `context` optional for `PatternRecognizer` * Update typescript
1 parent 93c214e commit 8d6c1c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openmetadata-spec/src/main/resources/json/schema/type/patternRecognizer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"default": "en"
3535
}
3636
},
37-
"required": ["type", "patterns", "supportedLanguage", "regexFlags", "context"],
37+
"required": ["type", "patterns", "supportedLanguage", "regexFlags"],
3838
"additionalProperties": false
3939
}

openmetadata-ui/src/main/resources/ui/src/generated/type/patternRecognizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface PatternRecognizer {
1717
/**
1818
* List of context words that can help boost confidence score
1919
*/
20-
context: string[];
20+
context?: string[];
2121
/**
2222
* List of patterns
2323
*/

0 commit comments

Comments
 (0)