Skip to content

Commit 6942ba5

Browse files
authored
fix validation_result type in api docs and type hint (#1869)
1 parent 2f33c18 commit 6942ba5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api-docs/api-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ components:
551551
type: string
552552
description: "The context word which helped increase the score"
553553
validation_result:
554-
type: number
555-
format: double
554+
type: boolean
555+
nullable: true
556556
description: "Result of a validation (e.g. checksum)"
557557

558558
Pattern:

presidio-analyzer/presidio_analyzer/analysis_explanation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(
2121
original_score: float,
2222
pattern_name: str = None,
2323
pattern: str = None,
24-
validation_result: float = None,
24+
validation_result: bool = None,
2525
textual_explanation: str = None,
2626
regex_flags: int = None,
2727
):

0 commit comments

Comments
 (0)