Skip to content
Merged
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: '*docker-compose.y*ml src/Regula.DocumentReader.WebClient/Client/ApiClient.cs *'
EXCLUDE_PATHS: '*docker-compose.y*ml src/Regula.DocumentReader.WebClient/Client/ApiClient.cs * .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
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public EncryptedRCLItem(byte[] encryptedRCL = default)
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@3b6ff8b0</example>
<example>[B@ddf331e</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@3b6ff8b0</example>
<example>[B@ddf331e</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down Expand Up @@ -105,7 +105,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 108 in src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'EncryptedRCLResult.BaseValidate(ValidationContext)' hides inherited member 'ResultItem.BaseValidate(ValidationContext)'. Use the new keyword if hiding was intended.
{
foreach (var x in base.BaseValidate(validationContext))
{
Expand Down
12 changes: 11 additions & 1 deletion src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ protected Healthcheck() { }
/// <param name="scenarios">List of supported scenarios. (required).</param>
/// <param name="varVersion">Product version. (required).</param>
/// <param name="metadata">metadata.</param>
/// <param name="countryFilter">The list of country identifiers that are defined for processing in the license. If the array is empty, there are no restrictions for processing..</param>
/// <param name="documentsDatabase">documentsDatabase.</param>
public Healthcheck(string app = default, string licenseId = default, string licenseType = default, string licenseSerial = default, DateTime? licenseValidUntil = default, List<string> scenarios = default, string varVersion = default, Dictionary<string, Object> metadata = default, HealthcheckDocumentsDatabase? documentsDatabase = default)
public Healthcheck(string app = default, string licenseId = default, string licenseType = default, string licenseSerial = default, DateTime? licenseValidUntil = default, List<string> scenarios = default, string varVersion = default, Dictionary<string, Object> metadata = default, List<string> countryFilter = default, HealthcheckDocumentsDatabase? documentsDatabase = default)
{
// to ensure "app" is required (not null)
if (app == null)
Expand Down Expand Up @@ -94,6 +95,7 @@ public Healthcheck(string app = default, string licenseId = default, string lice
}
this.VarVersion = varVersion;
this.Metadata = metadata;
this.CountryFilter = countryFilter;
this.DocumentsDatabase = documentsDatabase;
}

Expand Down Expand Up @@ -152,6 +154,13 @@ public Healthcheck(string app = default, string licenseId = default, string lice
[DataMember(Name = "metadata", EmitDefaultValue = false)]
public Dictionary<string, Object>? Metadata { get; set; }

/// <summary>
/// The list of country identifiers that are defined for processing in the license. If the array is empty, there are no restrictions for processing.
/// </summary>
/// <value>The list of country identifiers that are defined for processing in the license. If the array is empty, there are no restrictions for processing.</value>
[DataMember(Name = "countryFilter", EmitDefaultValue = false)]
public List<string>? CountryFilter { get; set; }

/// <summary>
/// Gets or Sets DocumentsDatabase
/// </summary>
Expand All @@ -174,6 +183,7 @@ public override string ToString()
sb.Append(" Scenarios: ").Append(Scenarios).Append("\n");
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
sb.Append(" CountryFilter: ").Append(CountryFilter).Append("\n");
sb.Append(" DocumentsDatabase: ").Append(DocumentsDatabase).Append("\n");
sb.Append("}\n");
return sb.ToString();
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public LicenseItem(byte[] license = default)
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@759cd0b8</example>
<example>[B@7756c410</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public LicenseResult(byte[] license = default, int? bufLength = default, int? li
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@759cd0b8</example>
<example>[B@7756c410</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Loading