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 generator-templates/lenient/modelGeneric.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
{{#hasOnlyReadOnly}}
[JsonConstructorAttribute]
{{/hasOnlyReadOnly}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default{{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
{
{{#vars}}
{{^isInherited}}
Expand Down
2 changes: 1 addition & 1 deletion generator-templates/strict/modelGeneric.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
{{#hasOnlyReadOnly}}
[JsonConstructorAttribute]
{{/hasOnlyReadOnly}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default{{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
{
{{#vars}}
{{^isInherited}}
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/AreaArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected AreaArray() { }
/// <param name="count">Number of elements in List and Points (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaArray(decimal count = default(decimal), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointArray> points = default(List<PointArray>))
public AreaArray(decimal count = default, List<RectangleCoordinates> list = default, List<PointArray> points = default)
{
this.Count = count;
// to ensure "list" is required (not null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected AreaContainer() { }
/// <param name="count">count (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaContainer(int count = default(int), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointsContainer> points = default(List<PointsContainer>))
public AreaContainer(int count = default, List<RectangleCoordinates> list = default, List<PointsContainer> points = default)
{
this.Count = count;
// to ensure "list" is required (not null)
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/AuthParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public partial class AuthParams : IValidatableObject
/// <param name="checkPhotoComparison">This parameter is used to enable Portrait comparison check.</param>
/// <param name="checkLetterScreen">This parameter is used to enable LetterScreen check.</param>
/// <param name="checkSecurityText">This parameter is used to enable Security text check.</param>
public AuthParams(bool checkLiveness = default(bool), LivenessParams livenessParams = default(LivenessParams), bool checkUVLuminiscence = default(bool), bool checkIRB900 = default(bool), bool checkImagePatterns = default(bool), bool checkFibers = default(bool), bool checkExtMRZ = default(bool), bool checkExtOCR = default(bool), bool checkAxial = default(bool), bool checkBarcodeFormat = default(bool), bool checkIRVisibility = default(bool), bool checkIPI = default(bool), bool checkPhotoEmbedding = default(bool), bool checkPhotoComparison = default(bool), bool checkLetterScreen = default(bool), bool checkSecurityText = default(bool))
public AuthParams(bool? checkLiveness = default, LivenessParams? livenessParams = default, bool? checkUVLuminiscence = default, bool? checkIRB900 = default, bool? checkImagePatterns = default, bool? checkFibers = default, bool? checkExtMRZ = default, bool? checkExtOCR = default, bool? checkAxial = default, bool? checkBarcodeFormat = default, bool? checkIRVisibility = default, bool? checkIPI = default, bool? checkPhotoEmbedding = default, bool? checkPhotoComparison = default, bool? checkLetterScreen = default, bool? checkSecurityText = default)
{
this.CheckLiveness = checkLiveness;
this.LivenessParams = livenessParams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected AuthenticityCheckList() { }
/// </summary>
/// <param name="count">Count of items in List (required).</param>
/// <param name="list">Authenticity Check (required).</param>
public AuthenticityCheckList(int count = default(int), List<AuthenticityCheckResult> list = default(List<AuthenticityCheckResult>))
public AuthenticityCheckList(int count = default, List<AuthenticityCheckResult> list = default)
{
this.Count = count;
// to ensure "list" is required (not null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected AuthenticityCheckListItem() { }
/// Initializes a new instance of the <see cref="AuthenticityCheckListItem" /> class.
/// </summary>
/// <param name="authenticityCheckList">authenticityCheckList (required).</param>
public AuthenticityCheckListItem(AuthenticityCheckList authenticityCheckList = default(AuthenticityCheckList))
public AuthenticityCheckListItem(AuthenticityCheckList authenticityCheckList = default)
{
// to ensure "authenticityCheckList" is required (not null)
if (authenticityCheckList == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected AuthenticityCheckResult() { }
/// <param name="result">result (required).</param>
/// <param name="count">Count of items in List.</param>
/// <param name="list">list (required).</param>
public AuthenticityCheckResult(AuthenticityResultType type = default(AuthenticityResultType), CheckResult result = default(CheckResult), int count = default(int), List<AuthenticityCheckResultItem> list = default(List<AuthenticityCheckResultItem>))
public AuthenticityCheckResult(AuthenticityResultType type = default, CheckResult result = default, int? count = default, List<AuthenticityCheckResultItem> list = default)
{
this.Type = type;
this.Result = result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected AuthenticityCheckResultItem() { }
/// <param name="elementResult">elementResult.</param>
/// <param name="elementDiagnose">elementDiagnose.</param>
/// <param name="percentValue">percentValue.</param>
public AuthenticityCheckResultItem(AuthenticityResultType type = default(AuthenticityResultType), CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int))
public AuthenticityCheckResultItem(AuthenticityResultType type = default, CheckResult? elementResult = default, CheckDiagnose? elementDiagnose = default, int? percentValue = default)
{
this.Type = type;
this.ElementResult = elementResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
/// <param name="listIdx">listIdx.</param>
/// <param name="pageIdx">pageIdx.</param>
/// <param name="resultType">resultType (required) (default to Result.AUTHENTICITY).</param>
public AuthenticityResult(AuthenticityCheckList authenticityCheckList = default(AuthenticityCheckList), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), Result resultType = Result.AUTHENTICITY) : base(bufLength, light, listIdx, pageIdx, resultType)
public AuthenticityResult(AuthenticityCheckList authenticityCheckList = default, int? bufLength = default, int? light = default, int? listIdx = default, int? pageIdx = default, Result resultType = Result.AUTHENTICITY) : base(bufLength, light, listIdx, pageIdx, resultType)
{
// to ensure "authenticityCheckList" is required (not null)
if (authenticityCheckList == null)
Expand Down Expand Up @@ -101,7 +101,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 104 in src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'AuthenticityResult.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
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected BSIV2Item() { }
/// Initializes a new instance of the <see cref="BSIV2Item" /> class.
/// </summary>
/// <param name="xMLBuffer">xMLBuffer (required).</param>
public BSIV2Item(string xMLBuffer = default(string))
public BSIV2Item(string xMLBuffer = default)
{
// to ensure "xMLBuffer" is required (not null)
if (xMLBuffer == null)
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
/// <param name="listIdx">listIdx.</param>
/// <param name="pageIdx">pageIdx.</param>
/// <param name="resultType">resultType (required) (default to Result.BSI_XML_V2).</param>
public BSIV2Result(string xMLBuffer = default(string), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), Result resultType = Result.BSI_XML_V2) : base(bufLength, light, listIdx, pageIdx, resultType)
public BSIV2Result(string xMLBuffer = default, int? bufLength = default, int? light = default, int? listIdx = default, int? pageIdx = default, Result resultType = Result.BSI_XML_V2) : base(bufLength, light, listIdx, pageIdx, resultType)
{
// to ensure "xMLBuffer" is required (not null)
if (xMLBuffer == null)
Expand Down Expand Up @@ -101,7 +101,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 104 in src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'BSIV2Result.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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected BarcodePositionItem() { }
/// Initializes a new instance of the <see cref="BarcodePositionItem" /> class.
/// </summary>
/// <param name="barcodePosition">barcodePosition (required).</param>
public BarcodePositionItem(DocumentPosition barcodePosition = default(DocumentPosition))
public BarcodePositionItem(DocumentPosition barcodePosition = default)
{
// to ensure "barcodePosition" is required (not null)
if (barcodePosition == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
/// <param name="listIdx">listIdx.</param>
/// <param name="pageIdx">pageIdx.</param>
/// <param name="resultType">resultType (required) (default to Result.BARCODE_POSITION).</param>
public BarcodePositionResult(DocumentPosition barcodePosition = default(DocumentPosition), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), Result resultType = Result.BARCODE_POSITION) : base(bufLength, light, listIdx, pageIdx, resultType)
public BarcodePositionResult(DocumentPosition barcodePosition = default, int? bufLength = default, int? light = default, int? listIdx = default, int? pageIdx = default, Result resultType = Result.BARCODE_POSITION) : base(bufLength, light, listIdx, pageIdx, resultType)
{
// to ensure "barcodePosition" is required (not null)
if (barcodePosition == null)
Expand Down Expand Up @@ -101,7 +101,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 104 in src/Regula.DocumentReader.WebClient/Model/BarcodePositionResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'BarcodePositionResult.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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected BcPDF417INFO() { }
/// <param name="bcRow">bcRow (required).</param>
/// <param name="minX">minX (required).</param>
/// <param name="minY">minY (required).</param>
public BcPDF417INFO(float angle = default(float), int bcColumn = default(int), int bcErrorLevel = default(int), int bcRow = default(int), float minX = default(float), float minY = default(float))
public BcPDF417INFO(float angle = default, int bcColumn = default, int bcErrorLevel = default, int bcRow = default, float minX = default, float minY = default)
{
this.Angle = angle;
this.BcColumn = bcColumn;
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/BcROIDETECT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected BcROIDETECT() { }
/// <param name="left">left (required).</param>
/// <param name="right">right (required).</param>
/// <param name="top">top (required).</param>
public BcROIDETECT(int bottom = default(int), int left = default(int), int right = default(int), int top = default(int))
public BcROIDETECT(int bottom = default, int left = default, int right = default, int top = default)
{
this.Bottom = bottom;
this.Left = left;
Expand Down
Loading