schemathesis 4.0.18__py3-none-any.whl → 4.0.19__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- schemathesis/core/errors.py +1 -1
- schemathesis/specs/openapi/converter.py +1 -1
- schemathesis/specs/openapi/schemas.py +4 -0
- {schemathesis-4.0.18.dist-info → schemathesis-4.0.19.dist-info}/METADATA +1 -1
- {schemathesis-4.0.18.dist-info → schemathesis-4.0.19.dist-info}/RECORD +8 -8
- {schemathesis-4.0.18.dist-info → schemathesis-4.0.19.dist-info}/WHEEL +0 -0
- {schemathesis-4.0.18.dist-info → schemathesis-4.0.19.dist-info}/entry_points.txt +0 -0
- {schemathesis-4.0.18.dist-info → schemathesis-4.0.19.dist-info}/licenses/LICENSE +0 -0
schemathesis/core/errors.py
CHANGED
@@ -52,7 +52,7 @@ class InvalidSchema(SchemathesisError):
|
|
52
52
|
|
53
53
|
@classmethod
|
54
54
|
def from_jsonschema_error(
|
55
|
-
cls, error: ValidationError, path: str | None, method: str | None, config: OutputConfig
|
55
|
+
cls, error: ValidationError | JsonSchemaError, path: str | None, method: str | None, config: OutputConfig
|
56
56
|
) -> InvalidSchema:
|
57
57
|
if error.absolute_path:
|
58
58
|
part = error.absolute_path[-1]
|
@@ -34,7 +34,7 @@ def to_json_schema(
|
|
34
34
|
update_pattern_in_schema(schema)
|
35
35
|
# Sometimes `required` is incorrectly has a boolean value
|
36
36
|
properties = schema.get("properties")
|
37
|
-
if properties:
|
37
|
+
if isinstance(properties, dict):
|
38
38
|
for name, subschema in properties.items():
|
39
39
|
if not isinstance(subschema, dict):
|
40
40
|
continue
|
@@ -646,6 +646,10 @@ class BaseOpenAPISchema(BaseSchema):
|
|
646
646
|
# Use a recent JSON Schema format checker to get most of formats checked for older drafts as well
|
647
647
|
format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER,
|
648
648
|
)
|
649
|
+
except jsonschema.SchemaError as exc:
|
650
|
+
raise InvalidSchema.from_jsonschema_error(
|
651
|
+
exc, path=operation.path, method=operation.method, config=self.config.output
|
652
|
+
) from exc
|
649
653
|
except jsonschema.ValidationError as exc:
|
650
654
|
failures.append(
|
651
655
|
JsonSchemaError.from_exception(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: schemathesis
|
3
|
-
Version: 4.0.
|
3
|
+
Version: 4.0.19
|
4
4
|
Summary: Property-based testing framework for Open API and GraphQL based apps
|
5
5
|
Project-URL: Documentation, https://schemathesis.readthedocs.io/en/stable/
|
6
6
|
Project-URL: Changelog, https://github.com/schemathesis/schemathesis/blob/master/CHANGELOG.md
|
@@ -51,7 +51,7 @@ schemathesis/core/compat.py,sha256=9BWCrFoqN2sJIaiht_anxe8kLjYMR7t0iiOkXqLRUZ8,1
|
|
51
51
|
schemathesis/core/control.py,sha256=IzwIc8HIAEMtZWW0Q0iXI7T1niBpjvcLlbuwOSmy5O8,130
|
52
52
|
schemathesis/core/curl.py,sha256=yuaCe_zHLGwUjEeloQi6W3tOA3cGdnHDNI17-5jia0o,1723
|
53
53
|
schemathesis/core/deserialization.py,sha256=qjXUPaz_mc1OSgXzTUSkC8tuVR8wgVQtb9g3CcAF6D0,2951
|
54
|
-
schemathesis/core/errors.py,sha256=
|
54
|
+
schemathesis/core/errors.py,sha256=Afs2EFyJpcy9Pr1MvnP-jeoiPiAW14MtV3YJYgio2E8,16313
|
55
55
|
schemathesis/core/failures.py,sha256=MYyRnom-XeUEuBmq2ffdz34xhxmpSHWaQunfHtliVsY,8932
|
56
56
|
schemathesis/core/fs.py,sha256=ItQT0_cVwjDdJX9IiI7EnU75NI2H3_DCEyyUjzg_BgI,472
|
57
57
|
schemathesis/core/hooks.py,sha256=qhbkkRSf8URJ4LKv2wmKRINKpquUOgxQzWBHKWRWo3Q,475
|
@@ -126,7 +126,7 @@ schemathesis/specs/openapi/_cache.py,sha256=HpglmETmZU0RCHxp3DO_sg5_B_nzi54Zuw9v
|
|
126
126
|
schemathesis/specs/openapi/_hypothesis.py,sha256=H-4pzT7dECY-AcDGhebKdTSELhGOdyA1WCbZQSMZY3E,22309
|
127
127
|
schemathesis/specs/openapi/checks.py,sha256=0YiMoUy_wsnPvbOrsbnQ2iDxLloNe2-dc5-hnsst0ss,29863
|
128
128
|
schemathesis/specs/openapi/constants.py,sha256=JqM_FHOenqS_MuUE9sxVQ8Hnw0DNM8cnKDwCwPLhID4,783
|
129
|
-
schemathesis/specs/openapi/converter.py,sha256=
|
129
|
+
schemathesis/specs/openapi/converter.py,sha256=LkpCCAxZzET4Qa_3YStSNuhGlsm5G6TVwpxYu6lPO4g,4169
|
130
130
|
schemathesis/specs/openapi/definitions.py,sha256=8htclglV3fW6JPBqs59lgM4LnA25Mm9IptXBPb_qUT0,93949
|
131
131
|
schemathesis/specs/openapi/examples.py,sha256=V1fbsbMto_So7lTWnyGa7f3u9On2br8yZ-cPzcC2-Bw,21542
|
132
132
|
schemathesis/specs/openapi/formats.py,sha256=8AIS7Uey-Z1wm1WYRqnsVqHwG9d316PdqfKLqwUs7us,3516
|
@@ -134,7 +134,7 @@ schemathesis/specs/openapi/media_types.py,sha256=F5M6TKl0s6Z5X8mZpPsWDEdPBvxclKR
|
|
134
134
|
schemathesis/specs/openapi/parameters.py,sha256=ifu_QQCMUzsUHQAkvsOvLuokns6CzesssmQ3Nd3zxII,14594
|
135
135
|
schemathesis/specs/openapi/patterns.py,sha256=XhxZzIaCli3E67YZ9V6wQFvBkqDOEVwRrcUSEypjtHU,15890
|
136
136
|
schemathesis/specs/openapi/references.py,sha256=40YcDExPLR2B8EOwt-Csw-5MYFi2xj_DXf91J0Pc9d4,8855
|
137
|
-
schemathesis/specs/openapi/schemas.py,sha256=
|
137
|
+
schemathesis/specs/openapi/schemas.py,sha256=ZhFYxYzm0u9VpPMD5f_tt15l29OMa4-lrofOWf4Q6yM,52790
|
138
138
|
schemathesis/specs/openapi/security.py,sha256=6UWYMhL-dPtkTineqqBFNKca1i4EuoTduw-EOLeE0aQ,7149
|
139
139
|
schemathesis/specs/openapi/serialization.py,sha256=VdDLmeHqxlWM4cxQQcCkvrU6XurivolwEEaT13ohelA,11972
|
140
140
|
schemathesis/specs/openapi/utils.py,sha256=ER4vJkdFVDIE7aKyxyYatuuHVRNutytezgE52pqZNE8,900
|
@@ -157,8 +157,8 @@ schemathesis/transport/prepare.py,sha256=erYXRaxpQokIDzaIuvt_csHcw72iHfCyNq8VNEz
|
|
157
157
|
schemathesis/transport/requests.py,sha256=46aplzhSmBupegPNMawma-iJWCegWkEd6mzdWLTpgM4,10742
|
158
158
|
schemathesis/transport/serialization.py,sha256=igUXKZ_VJ9gV7P0TUc5PDQBJXl_s0kK9T3ljGWWvo6E,10339
|
159
159
|
schemathesis/transport/wsgi.py,sha256=KoAfvu6RJtzyj24VGB8e-Iaa9smpgXJ3VsM8EgAz2tc,6152
|
160
|
-
schemathesis-4.0.
|
161
|
-
schemathesis-4.0.
|
162
|
-
schemathesis-4.0.
|
163
|
-
schemathesis-4.0.
|
164
|
-
schemathesis-4.0.
|
160
|
+
schemathesis-4.0.19.dist-info/METADATA,sha256=WPI61wfusysfYH6V3WBiySVn1vvhxqZgK2V88Q6RUk8,8472
|
161
|
+
schemathesis-4.0.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
162
|
+
schemathesis-4.0.19.dist-info/entry_points.txt,sha256=hiK3un-xfgPdwj9uj16YVDtTNpO128bmk0U82SMv8ZQ,152
|
163
|
+
schemathesis-4.0.19.dist-info/licenses/LICENSE,sha256=2Ve4J8v5jMQAWrT7r1nf3bI8Vflk3rZVQefiF2zpxwg,1121
|
164
|
+
schemathesis-4.0.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|