|
30 | 30 | from openfga_sdk.telemetry.histograms import TelemetryHistogram |
31 | 31 | from openfga_sdk.validation import is_well_formed_ulid_string |
32 | 32 |
|
33 | | -JSON_SCHEMA_VALIDATION_KEYWORDS = { |
34 | | - "multipleOf", |
35 | | - "maximum", |
36 | | - "exclusiveMaximum", |
37 | | - "minimum", |
38 | | - "exclusiveMinimum", |
39 | | - "maxLength", |
40 | | - "minLength", |
41 | | - "pattern", |
42 | | - "maxItems", |
43 | | - "minItems", |
44 | | -} |
45 | | - |
46 | 33 |
|
47 | 34 | class RetryParams: |
48 | 35 | """NOTE: This class is auto generated by OpenAPI Generator |
@@ -144,19 +131,6 @@ class Configuration: |
144 | 131 | then all undeclared properties received by the server are injected into the |
145 | 132 | additional properties map. In that case, there are undeclared properties, and |
146 | 133 | nothing to discard. |
147 | | - :param disabled_client_side_validations (string): Comma-separated list of |
148 | | - JSON schema validation keywords to disable JSON schema structural validation |
149 | | - rules. The following keywords may be specified: multipleOf, maximum, |
150 | | - exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern, |
151 | | - maxItems, minItems. |
152 | | - By default, the validation is performed for data generated locally by the client |
153 | | - and data received from the server, independent of any validation performed by |
154 | | - the server side. If the input data does not satisfy the JSON schema validation |
155 | | - rules specified in the OpenAPI document, an exception is raised. |
156 | | - If disabled_client_side_validations is set, structural validation is |
157 | | - disabled. This can be useful to troubleshoot data validation problem, such as |
158 | | - when the OpenAPI document validation rules do not match the actual API data |
159 | | - received by the server. |
160 | 134 | :param server_index: Index to servers configuration. |
161 | 135 | :param server_variables: Mapping with string values to replace variables in |
162 | 136 | templated server configuration. The validation of enums is performed for |
@@ -186,7 +160,6 @@ def __init__( |
186 | 160 | username=None, |
187 | 161 | password=None, |
188 | 162 | discard_unknown_keys=False, |
189 | | - disabled_client_side_validations="", |
190 | 163 | server_index=None, |
191 | 164 | server_variables=None, |
192 | 165 | server_operation_index=None, |
@@ -256,7 +229,6 @@ def __init__( |
256 | 229 | """Password for HTTP basic authentication |
257 | 230 | """ |
258 | 231 | self.discard_unknown_keys = discard_unknown_keys |
259 | | - self.disabled_client_side_validations = disabled_client_side_validations |
260 | 232 | self.logger = {} |
261 | 233 | """Logging Settings |
262 | 234 | """ |
@@ -747,20 +719,3 @@ def timeout_millisec(self, value): |
747 | 719 | Update timeout milliseconds |
748 | 720 | """ |
749 | 721 | self._timeout_millisec = value |
750 | | - |
751 | | - @property |
752 | | - def disabled_client_side_validations(self): |
753 | | - """Return disable_client_side_validations.""" |
754 | | - return self._disabled_client_side_validations |
755 | | - |
756 | | - @disabled_client_side_validations.setter |
757 | | - def disabled_client_side_validations(self, value): |
758 | | - """Update disable_client_side_validations.""" |
759 | | - self._disabled_client_side_validations = {} |
760 | | - |
761 | | - if isinstance(value, str) and value: |
762 | | - s = set(filter(None, value.split(","))) |
763 | | - for v in s: |
764 | | - if v not in JSON_SCHEMA_VALIDATION_KEYWORDS: |
765 | | - raise FgaValidationException(f"Invalid keyword: '{v}''") |
766 | | - self._disabled_client_side_validations = s |
0 commit comments