Skip to content

Commit c3176e6

Browse files
committed
tests: support pydantic 2.10
1 parent 781e4ce commit c3176e6

File tree

4 files changed

+1
-40
lines changed

4 files changed

+1
-40
lines changed

tests/test_openapi.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def probe(
183183
'jsonrpc': {
184184
'const': '2.0',
185185
'default': '2.0',
186-
'enum': ['2.0'],
187186
'example': '2.0',
188187
'title': 'Jsonrpc',
189188
'type': 'string',
@@ -214,7 +213,6 @@ def probe(
214213
'jsonrpc': {
215214
'const': '2.0',
216215
'default': '2.0',
217-
'enum': ['2.0'],
218216
'example': '2.0',
219217
'title': 'Jsonrpc',
220218
'type': 'string',
@@ -245,7 +243,6 @@ def probe(
245243
'jsonrpc': {
246244
'const': '2.0',
247245
'default': '2.0',
248-
'enum': ['2.0'],
249246
'example': '2.0',
250247
'title': 'Jsonrpc',
251248
'type': 'string',
@@ -276,7 +273,6 @@ def probe(
276273
'jsonrpc': {
277274
'const': '2.0',
278275
'default': '2.0',
279-
'enum': ['2.0'],
280276
'example': '2.0',
281277
'title': 'Jsonrpc',
282278
'type': 'string',
@@ -307,7 +303,6 @@ def probe(
307303
'jsonrpc': {
308304
'const': '2.0',
309305
'default': '2.0',
310-
'enum': ['2.0'],
311306
'example': '2.0',
312307
'title': 'Jsonrpc',
313308
'type': 'string',
@@ -356,7 +351,6 @@ def probe(
356351
'jsonrpc': {
357352
'const': '2.0',
358353
'default': '2.0',
359-
'enum': ['2.0'],
360354
'example': '2.0',
361355
'title': 'Jsonrpc',
362356
'type': 'string',
@@ -392,7 +386,6 @@ def probe(
392386
'jsonrpc': {
393387
'const': '2.0',
394388
'default': '2.0',
395-
'enum': ['2.0'],
396389
'example': '2.0',
397390
'title': 'Jsonrpc',
398391
'type': 'string',
@@ -429,7 +422,6 @@ def probe(
429422
'jsonrpc': {
430423
'const': '2.0',
431424
'default': '2.0',
432-
'enum': ['2.0'],
433425
'example': '2.0',
434426
'title': 'Jsonrpc',
435427
'type': 'string',
@@ -461,7 +453,6 @@ def probe(
461453
'jsonrpc': {
462454
'const': '2.0',
463455
'default': '2.0',
464-
'enum': ['2.0'],
465456
'example': '2.0',
466457
'title': 'Jsonrpc',
467458
'type': 'string',

tests/test_openapi_dependencies.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ def test_basic(app_client, openapi_compatible):
215215
'jsonrpc': {
216216
'const': '2.0',
217217
'default': '2.0',
218-
'enum': ['2.0'],
219218
'example': '2.0',
220219
'title': 'Jsonrpc',
221220
'type': 'string',
@@ -246,7 +245,6 @@ def test_basic(app_client, openapi_compatible):
246245
'jsonrpc': {
247246
'const': '2.0',
248247
'default': '2.0',
249-
'enum': ['2.0'],
250248
'example': '2.0',
251249
'title': 'Jsonrpc',
252250
'type': 'string',
@@ -277,7 +275,6 @@ def test_basic(app_client, openapi_compatible):
277275
'jsonrpc': {
278276
'const': '2.0',
279277
'default': '2.0',
280-
'enum': ['2.0'],
281278
'example': '2.0',
282279
'title': 'Jsonrpc',
283280
'type': 'string',
@@ -308,7 +305,6 @@ def test_basic(app_client, openapi_compatible):
308305
'jsonrpc': {
309306
'const': '2.0',
310307
'default': '2.0',
311-
'enum': ['2.0'],
312308
'example': '2.0',
313309
'title': 'Jsonrpc',
314310
'type': 'string',
@@ -339,7 +335,6 @@ def test_basic(app_client, openapi_compatible):
339335
'jsonrpc': {
340336
'const': '2.0',
341337
'default': '2.0',
342-
'enum': ['2.0'],
343338
'example': '2.0',
344339
'title': 'Jsonrpc',
345340
'type': 'string',
@@ -405,7 +400,6 @@ def test_basic(app_client, openapi_compatible):
405400
'jsonrpc': {
406401
'const': '2.0',
407402
'default': '2.0',
408-
'enum': ['2.0'],
409403
'example': '2.0',
410404
'title': 'Jsonrpc',
411405
'type': 'string',
@@ -433,7 +427,6 @@ def test_basic(app_client, openapi_compatible):
433427
'jsonrpc': {
434428
'const': '2.0',
435429
'default': '2.0',
436-
'enum': ['2.0'],
437430
'example': '2.0',
438431
'title': 'Jsonrpc',
439432
'type': 'string',
@@ -468,7 +461,6 @@ def test_basic(app_client, openapi_compatible):
468461
'jsonrpc': {
469462
'const': '2.0',
470463
'default': '2.0',
471-
'enum': ['2.0'],
472464
'example': '2.0',
473465
'title': 'Jsonrpc',
474466
'type': 'string',
@@ -505,7 +497,6 @@ def test_basic(app_client, openapi_compatible):
505497
'jsonrpc': {
506498
'const': '2.0',
507499
'default': '2.0',
508-
'enum': ['2.0'],
509500
'example': '2.0',
510501
'title': 'Jsonrpc',
511502
'type': 'string',
@@ -530,7 +521,6 @@ def test_basic(app_client, openapi_compatible):
530521
'jsonrpc': {
531522
'const': '2.0',
532523
'default': '2.0',
533-
'enum': ['2.0'],
534524
'example': '2.0',
535525
'title': 'Jsonrpc',
536526
'type': 'string',
@@ -562,7 +552,6 @@ def test_basic(app_client, openapi_compatible):
562552
'jsonrpc': {
563553
'const': '2.0',
564554
'default': '2.0',
565-
'enum': ['2.0'],
566555
'example': '2.0',
567556
'title': 'Jsonrpc',
568557
'type': 'string',

tests/test_params.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def test_openapi(app_client, openapi_compatible):
214214
'jsonrpc': {
215215
'const': '2.0',
216216
'default': '2.0',
217-
'enum': ['2.0'],
217+
218218
'example': '2.0',
219219
'title': 'Jsonrpc',
220220
'type': 'string',
@@ -245,7 +245,6 @@ def test_openapi(app_client, openapi_compatible):
245245
'jsonrpc': {
246246
'const': '2.0',
247247
'default': '2.0',
248-
'enum': ['2.0'],
249248
'example': '2.0',
250249
'title': 'Jsonrpc',
251250
'type': 'string',
@@ -276,7 +275,6 @@ def test_openapi(app_client, openapi_compatible):
276275
'jsonrpc': {
277276
'const': '2.0',
278277
'default': '2.0',
279-
'enum': ['2.0'],
280278
'example': '2.0',
281279
'title': 'Jsonrpc',
282280
'type': 'string',
@@ -307,7 +305,6 @@ def test_openapi(app_client, openapi_compatible):
307305
'jsonrpc': {
308306
'const': '2.0',
309307
'default': '2.0',
310-
'enum': ['2.0'],
311308
'example': '2.0',
312309
'title': 'Jsonrpc',
313310
'type': 'string',
@@ -338,7 +335,6 @@ def test_openapi(app_client, openapi_compatible):
338335
'jsonrpc': {
339336
'const': '2.0',
340337
'default': '2.0',
341-
'enum': ['2.0'],
342338
'example': '2.0',
343339
'title': 'Jsonrpc',
344340
'type': 'string',
@@ -366,7 +362,6 @@ def test_openapi(app_client, openapi_compatible):
366362
'jsonrpc': {
367363
'const': '2.0',
368364
'default': '2.0',
369-
'enum': ['2.0'],
370365
'example': '2.0',
371366
'title': 'Jsonrpc',
372367
'type': 'string',
@@ -402,7 +397,6 @@ def test_openapi(app_client, openapi_compatible):
402397
'jsonrpc': {
403398
'const': '2.0',
404399
'default': '2.0',
405-
'enum': ['2.0'],
406400
'example': '2.0',
407401
'title': 'Jsonrpc',
408402
'type': 'string',
@@ -439,7 +433,6 @@ def test_openapi(app_client, openapi_compatible):
439433
'jsonrpc': {
440434
'const': '2.0',
441435
'default': '2.0',
442-
'enum': ['2.0'],
443436
'example': '2.0',
444437
'title': 'Jsonrpc',
445438
'type': 'string',
@@ -471,7 +464,6 @@ def test_openapi(app_client, openapi_compatible):
471464
'jsonrpc': {
472465
'const': '2.0',
473466
'default': '2.0',
474-
'enum': ['2.0'],
475467
'example': '2.0',
476468
'title': 'Jsonrpc',
477469
'type': 'string',

tests/test_shared_model.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ def test_openapi(app_client, openapi_compatible):
238238
'jsonrpc': {
239239
'const': '2.0',
240240
'default': '2.0',
241-
'enum': ['2.0'],
242241
'example': '2.0',
243242
'title': 'Jsonrpc',
244243
'type': 'string',
@@ -269,7 +268,6 @@ def test_openapi(app_client, openapi_compatible):
269268
'jsonrpc': {
270269
'const': '2.0',
271270
'default': '2.0',
272-
'enum': ['2.0'],
273271
'example': '2.0',
274272
'title': 'Jsonrpc',
275273
'type': 'string',
@@ -300,7 +298,6 @@ def test_openapi(app_client, openapi_compatible):
300298
'jsonrpc': {
301299
'const': '2.0',
302300
'default': '2.0',
303-
'enum': ['2.0'],
304301
'example': '2.0',
305302
'title': 'Jsonrpc',
306303
'type': 'string',
@@ -331,7 +328,6 @@ def test_openapi(app_client, openapi_compatible):
331328
'jsonrpc': {
332329
'const': '2.0',
333330
'default': '2.0',
334-
'enum': ['2.0'],
335331
'example': '2.0',
336332
'title': 'Jsonrpc',
337333
'type': 'string',
@@ -362,7 +358,6 @@ def test_openapi(app_client, openapi_compatible):
362358
'jsonrpc': {
363359
'const': '2.0',
364360
'default': '2.0',
365-
'enum': ['2.0'],
366361
'example': '2.0',
367362
'title': 'Jsonrpc',
368363
'type': 'string',
@@ -414,7 +409,6 @@ def test_openapi(app_client, openapi_compatible):
414409
'jsonrpc': {
415410
'const': '2.0',
416411
'default': '2.0',
417-
'enum': ['2.0'],
418412
'example': '2.0',
419413
'title': 'Jsonrpc',
420414
'type': 'string',
@@ -450,7 +444,6 @@ def test_openapi(app_client, openapi_compatible):
450444
'jsonrpc': {
451445
'const': '2.0',
452446
'default': '2.0',
453-
'enum': ['2.0'],
454447
'example': '2.0',
455448
'title': 'Jsonrpc',
456449
'type': 'string',
@@ -487,7 +480,6 @@ def test_openapi(app_client, openapi_compatible):
487480
'jsonrpc': {
488481
'const': '2.0',
489482
'default': '2.0',
490-
'enum': ['2.0'],
491483
'example': '2.0',
492484
'title': 'Jsonrpc',
493485
'type': 'string',
@@ -524,7 +516,6 @@ def test_openapi(app_client, openapi_compatible):
524516
'jsonrpc': {
525517
'const': '2.0',
526518
'default': '2.0',
527-
'enum': ['2.0'],
528519
'example': '2.0',
529520
'title': 'Jsonrpc',
530521
'type': 'string',
@@ -557,7 +548,6 @@ def test_openapi(app_client, openapi_compatible):
557548
'jsonrpc': {
558549
'const': '2.0',
559550
'default': '2.0',
560-
'enum': ['2.0'],
561551
'example': '2.0',
562552
'title': 'Jsonrpc',
563553
'type': 'string',
@@ -590,7 +580,6 @@ def test_openapi(app_client, openapi_compatible):
590580
'jsonrpc': {
591581
'const': '2.0',
592582
'default': '2.0',
593-
'enum': ['2.0'],
594583
'example': '2.0',
595584
'title': 'Jsonrpc',
596585
'type': 'string',

0 commit comments

Comments
 (0)