1010import json
1111
1212from pydantic import BaseModel , ConfigDict , Field , StrictFloat , StrictInt
13- from typing import Any , ClassVar , Dict , List , Union
13+ from typing import Any , ClassVar , Dict , List , Optional , Union
14+ from regula .documentreader .webclient .gen .models .check_result import CheckResult
1415from regula .documentreader .webclient .gen .models .error_coordinates import ErrorCoordinates
1516from regula .documentreader .webclient .gen .models .field_item import FieldItem
1617from regula .documentreader .webclient .gen .models .rectangle_coordinates import RectangleCoordinates
@@ -22,24 +23,24 @@ class StringItem(BaseModel):
2223 """
2324 StringItem
2425 """ # noqa: E501
25- alignment_symbols_in_string : StrictInt = Field (alias = "ALIGNMENT_SYMBOLS_IN_STRING" )
26- check_sums : StrictInt = Field (alias = "CHECK_SUMS" )
26+ alignment_symbols_in_string : CheckResult = Field (alias = "ALIGNMENT_SYMBOLS_IN_STRING" )
27+ check_sums : CheckResult = Field (alias = "CHECK_SUMS" )
2728 error_position : ErrorCoordinates = Field (alias = "ErrorPOSITION" )
2829 field_count : StrictInt = Field (alias = "FieldCount" )
2930 fields : List [FieldItem ] = Field (alias = "Fields" )
30- strings_distance : StrictInt = Field (alias = "STRINGS_DISTANCE" )
31- strings_interval : StrictInt = Field (alias = "STRINGS_INTERVAL" )
32- string_filling : StrictInt = Field (alias = "STRING_FILLING" )
33- string_position : StrictInt = Field (alias = "STRING_POSITION " )
34- symbols_param : StrictInt = Field (alias = "SYMBOLS_PARAM" )
31+ strings_distance : CheckResult = Field (alias = "STRINGS_DISTANCE" )
32+ strings_interval : CheckResult = Field (alias = "STRINGS_INTERVAL" )
33+ string_filling : CheckResult = Field (alias = "STRING_FILLING" )
34+ strings_position : Optional [ CheckResult ] = Field (default = None , alias = "STRINGS_POSITION " )
35+ symbols_param : CheckResult = Field (alias = "SYMBOLS_PARAM" )
3536 size_error_alignment : Union [StrictFloat , StrictInt ] = Field (alias = "SizeError_ALIGNMENT" )
3637 size_error_distance : Union [StrictFloat , StrictInt ] = Field (alias = "SizeError_DISTANCE" )
3738 size_error_interval : Union [StrictFloat , StrictInt ] = Field (alias = "SizeError_INTERVAL" )
3839 string_angle : Union [StrictFloat , StrictInt ] = Field (alias = "StringAngle" )
3940 string_borders : RectangleCoordinates = Field (alias = "StringBorders" )
4041 symbols_count : StrictInt = Field (alias = "SymbolsCount" )
4142 symbols_estimations : List [SymbolEstimationItem ] = Field (alias = "SymbolsEstimations" )
42- __properties : ClassVar [List [str ]] = ["ALIGNMENT_SYMBOLS_IN_STRING" , "CHECK_SUMS" , "ErrorPOSITION" , "FieldCount" , "Fields" , "STRINGS_DISTANCE" , "STRINGS_INTERVAL" , "STRING_FILLING" , "STRING_POSITION " , "SYMBOLS_PARAM" , "SizeError_ALIGNMENT" , "SizeError_DISTANCE" , "SizeError_INTERVAL" , "StringAngle" , "StringBorders" , "SymbolsCount" , "SymbolsEstimations" ]
43+ __properties : ClassVar [List [str ]] = ["ALIGNMENT_SYMBOLS_IN_STRING" , "CHECK_SUMS" , "ErrorPOSITION" , "FieldCount" , "Fields" , "STRINGS_DISTANCE" , "STRINGS_INTERVAL" , "STRING_FILLING" , "STRINGS_POSITION " , "SYMBOLS_PARAM" , "SizeError_ALIGNMENT" , "SizeError_DISTANCE" , "SizeError_INTERVAL" , "StringAngle" , "StringBorders" , "SymbolsCount" , "SymbolsEstimations" ]
4344
4445 model_config = ConfigDict (
4546 populate_by_name = True ,
@@ -120,7 +121,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
120121 "STRINGS_DISTANCE" : obj .get ("STRINGS_DISTANCE" ),
121122 "STRINGS_INTERVAL" : obj .get ("STRINGS_INTERVAL" ),
122123 "STRING_FILLING" : obj .get ("STRING_FILLING" ),
123- "STRING_POSITION " : obj .get ("STRING_POSITION " ),
124+ "STRINGS_POSITION " : obj .get ("STRINGS_POSITION " ),
124125 "SYMBOLS_PARAM" : obj .get ("SYMBOLS_PARAM" ),
125126 "SizeError_ALIGNMENT" : obj .get ("SizeError_ALIGNMENT" ),
126127 "SizeError_DISTANCE" : obj .get ("SizeError_DISTANCE" ),
0 commit comments