Skip to content

Commit

Permalink
Fix type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
KirylKovaliov committed Nov 25, 2024
1 parent 36618fa commit 8018e4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions regula/documentreader/webclient/gen/models/container_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ContainerList(object):
"""
openapi_types = {
'count': 'int',
'list': 'list[AnyOfStatusResultTextResultDocumentImageResultImagesResultChosenDocumentTypeResultDocumentTypesCandidatesResultTextDataResultGraphicsResultLexicalAnalysisResultAuthenticityResultImageQualityResultDocumentPositionResultDocBarCodeInfoLicenseResultEncryptedRCLResultByteArrayResult]'
'list': 'list[ResultItem]'
}

attribute_map = {
Expand Down Expand Up @@ -84,7 +84,7 @@ def list(self):
:return: The list of this ContainerList. # noqa: E501
:rtype: list[AnyOfStatusResultTextResultDocumentImageResultImagesResultChosenDocumentTypeResultDocumentTypesCandidatesResultTextDataResultGraphicsResultLexicalAnalysisResultAuthenticityResultImageQualityResultDocumentPositionResultDocBarCodeInfoLicenseResultEncryptedRCLResultByteArrayResult]
:rtype: list[ResultItem]
"""
return self._list

Expand All @@ -94,7 +94,7 @@ def list(self, list):
:param list: The list of this ContainerList. # noqa: E501
:type list: list[AnyOfStatusResultTextResultDocumentImageResultImagesResultChosenDocumentTypeResultDocumentTypesCandidatesResultTextDataResultGraphicsResultLexicalAnalysisResultAuthenticityResultImageQualityResultDocumentPositionResultDocBarCodeInfoLicenseResultEncryptedRCLResultByteArrayResult]
:type list: list[ResultItem]
"""
if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501
raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501
Expand Down
3 changes: 2 additions & 1 deletion update-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ openapitools/openapi-generator-cli:v5.0.0 generate -g python-legacy \
--type-mappings AnyOfSecurityFeatureResultIdentResultFiberResultOCRSecurityTextResultPhotoIdentResult=AuthenticityCheckResultItem \
--type-mappings AnyOfGraphicFieldRectGraphicFieldRfid=GraphicField \
--type-mappings AnyOfStatusResultTextResultDocumentImageResultImagesResultChosenDocumentTypeResultDocumentTypesCandidatesResultTextDataResultGraphicsResultLexicalAnalysisResultAuthenticityResultImageQualityResultDocumentPositionResultDocBarCodeInfoLicenseResultEncryptedRCLResultDocumentBinaryInfoResult=ResultItem \
--type-mappings AnyOfStatusResultTextResultDocumentImageResultImagesResultChosenDocumentTypeResultDocumentTypesCandidatesResultTextDataResultGraphicsResultLexicalAnalysisResultAuthenticityResultImageQualityResultDocumentPositionResultDocBarCodeInfoLicenseResultEncryptedRCLResult=ResultItem
--type-mappings AnyOfStatusResultTextResultDocumentImageResultImagesResultChosenDocumentTypeResultDocumentTypesCandidatesResultTextDataResultGraphicsResultLexicalAnalysisResultAuthenticityResultImageQualityResultDocumentPositionResultDocBarCodeInfoLicenseResultEncryptedRCLResult=ResultItem \
--type-mappings AnyOfStatusResultTextResultDocumentImageResultImagesResultChosenDocumentTypeResultDocumentTypesCandidatesResultTextDataResultGraphicsResultLexicalAnalysisResultAuthenticityResultImageQualityResultDocumentPositionResultDocBarCodeInfoLicenseResultEncryptedRCLResultByteArrayResult=ResultItem

0 comments on commit 8018e4a

Please sign in to comment.