Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/sast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
# List of paths (space separated) to ignore
# Supports PATTERNS
# EXCLUDE_PATHS: 'foo bar/baz file.txt dir/*.yml'
EXCLUDE_PATHS: 'generator-templates regula/documentreader/webclient/gen'
EXCLUDE_PATHS: 'generator-templates regula/documentreader/webclient/gen .github'
# List of rules (space separated) to ignore
# EXCLUDE_RULES: 'generic.secrets.security.detected-aws-account-id.detected-aws-account-id'
# See https://github.com/semgrep/semgrep-rules for rules registry
Expand Down
4 changes: 3 additions & 1 deletion regula/documentreader/webclient/gen/models/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ class Healthcheck(BaseModel):
scenarios: SkipValidation[List[str]] = Field(alias="scenarios", description="List of supported scenarios.")
version: SkipValidation[str] = Field(alias="version", description="Product version.")
metadata: SkipValidation[Optional[Dict[str, object]]] = Field(alias="metadata", default=None)
country_filter: SkipValidation[Optional[List[str]]] = Field(alias="countryFilter", default=None, description="The list of country identifiers that are defined for processing in the license. If the array is empty, there are no restrictions for processing.")
documents_database: SkipValidation[Optional[HealthcheckDocumentsDatabase]] = Field(alias="documentsDatabase", default=None)
__properties: ClassVar[List[str]] = ["app", "licenseId", "licenseType", "licenseSerial", "licenseValidUntil", "scenarios", "version", "metadata", "documentsDatabase"]
__properties: ClassVar[List[str]] = ["app", "licenseId", "licenseType", "licenseSerial", "licenseValidUntil", "scenarios", "version", "metadata", "countryFilter", "documentsDatabase"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -126,6 +127,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"scenarios": obj.get("scenarios"),
"version": obj.get("version"),
"metadata": obj.get("metadata"),
"countryFilter": obj.get("countryFilter"),
"documentsDatabase": HealthcheckDocumentsDatabase.from_dict(obj["documentsDatabase"]) if obj.get("documentsDatabase") is not None else None
})
return _obj
Expand Down
Loading