@@ -26,16 +26,6 @@ class TestSchemas:
26
26
27
27
@parametrize
28
28
def test_method_create (self , client : Cloudflare ) -> None :
29
- schema = client .schema_validation .schemas .create (
30
- zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
31
- kind = "openapi_v3" ,
32
- name = "petstore schema" ,
33
- source = "<schema file contents>" ,
34
- )
35
- assert_matches_type (SchemaCreateResponse , schema , path = ["response" ])
36
-
37
- @parametrize
38
- def test_method_create_with_all_params (self , client : Cloudflare ) -> None :
39
29
schema = client .schema_validation .schemas .create (
40
30
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
41
31
kind = "openapi_v3" ,
@@ -52,6 +42,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
52
42
kind = "openapi_v3" ,
53
43
name = "petstore schema" ,
54
44
source = "<schema file contents>" ,
45
+ validation_enabled = True ,
55
46
)
56
47
57
48
assert response .is_closed is True
@@ -66,6 +57,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
66
57
kind = "openapi_v3" ,
67
58
name = "petstore schema" ,
68
59
source = "<schema file contents>" ,
60
+ validation_enabled = True ,
69
61
) as response :
70
62
assert not response .is_closed
71
63
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -83,6 +75,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
83
75
kind = "openapi_v3" ,
84
76
name = "petstore schema" ,
85
77
source = "<schema file contents>" ,
78
+ validation_enabled = True ,
86
79
)
87
80
88
81
@parametrize
@@ -302,16 +295,6 @@ class TestAsyncSchemas:
302
295
303
296
@parametrize
304
297
async def test_method_create (self , async_client : AsyncCloudflare ) -> None :
305
- schema = await async_client .schema_validation .schemas .create (
306
- zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
307
- kind = "openapi_v3" ,
308
- name = "petstore schema" ,
309
- source = "<schema file contents>" ,
310
- )
311
- assert_matches_type (SchemaCreateResponse , schema , path = ["response" ])
312
-
313
- @parametrize
314
- async def test_method_create_with_all_params (self , async_client : AsyncCloudflare ) -> None :
315
298
schema = await async_client .schema_validation .schemas .create (
316
299
zone_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
317
300
kind = "openapi_v3" ,
@@ -328,6 +311,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
328
311
kind = "openapi_v3" ,
329
312
name = "petstore schema" ,
330
313
source = "<schema file contents>" ,
314
+ validation_enabled = True ,
331
315
)
332
316
333
317
assert response .is_closed is True
@@ -342,6 +326,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
342
326
kind = "openapi_v3" ,
343
327
name = "petstore schema" ,
344
328
source = "<schema file contents>" ,
329
+ validation_enabled = True ,
345
330
) as response :
346
331
assert not response .is_closed
347
332
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -359,6 +344,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
359
344
kind = "openapi_v3" ,
360
345
name = "petstore schema" ,
361
346
source = "<schema file contents>" ,
347
+ validation_enabled = True ,
362
348
)
363
349
364
350
@parametrize
0 commit comments