@typespec/http-specs 0.1.0-alpha.35-dev.3 → 0.1.0-alpha.35-dev.5
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.
- package/dist/specs/payload/pageable/mockapi.js +27 -0
- package/dist/specs/payload/pageable/mockapi.js.map +1 -1
- package/dist/specs/payload/xml/mockapi.d.ts +16 -5
- package/dist/specs/payload/xml/mockapi.d.ts.map +1 -1
- package/dist/specs/payload/xml/mockapi.js +238 -56
- package/dist/specs/payload/xml/mockapi.js.map +1 -1
- package/manifest.json +424 -79
- package/package.json +1 -1
- package/spec-summary.md +392 -0
- package/specs/payload/pageable/main.tsp +47 -0
- package/specs/payload/pageable/mockapi.ts +28 -0
- package/specs/payload/xml/main.tsp +490 -179
- package/specs/payload/xml/mockapi.ts +323 -69
- package/temp/.tsbuildinfo +1 -1
package/manifest.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"sourceUrl": "https://github.com/microsoft/typespec/tree/main/packages/http-specs/specs/{scenarioPath}",
|
|
5
5
|
"packageName": "@typespec/http-specs",
|
|
6
6
|
"displayName": "Http Specs",
|
|
7
|
-
"commit": "
|
|
7
|
+
"commit": "a101c95de4434ea7013c491822fb83b98b69c1c0",
|
|
8
8
|
"scenarios": [
|
|
9
9
|
{
|
|
10
10
|
"name": "Authentication_ApiKey_invalid",
|
|
@@ -2442,11 +2442,11 @@
|
|
|
2442
2442
|
"location": {
|
|
2443
2443
|
"path": "payload/pageable/main.tsp",
|
|
2444
2444
|
"start": {
|
|
2445
|
-
"line":
|
|
2445
|
+
"line": 502,
|
|
2446
2446
|
"character": 2
|
|
2447
2447
|
},
|
|
2448
2448
|
"end": {
|
|
2449
|
-
"line":
|
|
2449
|
+
"line": 525,
|
|
2450
2450
|
"character": 4
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
@@ -2457,26 +2457,41 @@
|
|
|
2457
2457
|
"location": {
|
|
2458
2458
|
"path": "payload/pageable/main.tsp",
|
|
2459
2459
|
"start": {
|
|
2460
|
-
"line":
|
|
2460
|
+
"line": 527,
|
|
2461
2461
|
"character": 2
|
|
2462
2462
|
},
|
|
2463
2463
|
"end": {
|
|
2464
|
-
"line":
|
|
2464
|
+
"line": 563,
|
|
2465
2465
|
"character": 4
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
},
|
|
2469
|
+
{
|
|
2470
|
+
"name": "Payload_Pageable_ServerDrivenPagination_AlternateInitialVerb_post",
|
|
2471
|
+
"scenarioDoc": "Test case for initial POST request followed by GET for next pages using link pagination.\nThe initial request is a POST with a filter body, and the next page is fetched using a GET request on the next link.\n\nTwo requests need to be tested.\n1. Initial request (POST):\nExpected route: /payload/pageable/server-driven-pagination/link/initial-post\nExpected request body:\n```json\n{ \"filter\": \"foo eq bar\" }\n```\nExpected response body:\n```json\n{ \"pets\": [\n { \"id\": \"1\", \"name\": \"dog\" },\n { \"id\": \"2\", \"name\": \"cat\" }\n ],\n \"next\": \"http://[host]:[port]/payload/pageable/server-driven-pagination/link/initial-post/nextPage?token=abc\"\n}\n```\n2. Next page request (GET):\nExpected route: /payload/pageable/server-driven-pagination/link/initial-post/nextPage?token=abc\nExpected response body:\n```json\n{ \"pets\": [\n { \"id\": \"3\", \"name\": \"bird\" },\n { \"id\": \"4\", \"name\": \"fish\" }\n ]\n}\n```",
|
|
2472
|
+
"location": {
|
|
2473
|
+
"path": "payload/pageable/main.tsp",
|
|
2474
|
+
"start": {
|
|
2475
|
+
"line": 149,
|
|
2476
|
+
"character": 4
|
|
2477
|
+
},
|
|
2478
|
+
"end": {
|
|
2479
|
+
"line": 187,
|
|
2480
|
+
"character": 6
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
},
|
|
2469
2484
|
{
|
|
2470
2485
|
"name": "Payload_Pageable_ServerDrivenPagination_ContinuationToken_requestHeaderNestedResponseBody",
|
|
2471
2486
|
"scenarioDoc": "Test case for using continuation token as pagination with nested response structure. Continuation token is passed in the request header and nested within response body.\n\nTwo requests need to be tested.\n\n1. Initial request:\nExpected route: /payload/pageable/server-driven-pagination/continuationtoken/request-header-nested-response-body?bar=bar\n\nExpected request header:\nfoo=foo\n\nExpected response body:\n```json\n{ \"nestedItems\": {\n \"pets\": [\n { \"id\": \"1\", \"name\": \"dog\" },\n { \"id\": \"2\", \"name\": \"cat\" }\n ]\n },\n \"next\": {\n \"nextToken\": \"page2\"\n }\n}\n```\n\n2. Next page request:\nExpected route: /payload/pageable/server-driven-pagination/continuationtoken/request-header-nested-response-body?bar=bar\n\nExpected request header:\ntoken=page2\nfoo=foo\n\nExpected response body:\n```json\n{ \"nestedItems\": {\n \"pets\": [\n { \"id\": \"3\", \"name\": \"bird\" },\n { \"id\": \"4\", \"name\": \"fish\" }\n ]\n }\n}\n```",
|
|
2472
2487
|
"location": {
|
|
2473
2488
|
"path": "payload/pageable/main.tsp",
|
|
2474
2489
|
"start": {
|
|
2475
|
-
"line":
|
|
2490
|
+
"line": 439,
|
|
2476
2491
|
"character": 4
|
|
2477
2492
|
},
|
|
2478
2493
|
"end": {
|
|
2479
|
-
"line":
|
|
2494
|
+
"line": 496,
|
|
2480
2495
|
"character": 6
|
|
2481
2496
|
}
|
|
2482
2497
|
}
|
|
@@ -2487,11 +2502,11 @@
|
|
|
2487
2502
|
"location": {
|
|
2488
2503
|
"path": "payload/pageable/main.tsp",
|
|
2489
2504
|
"start": {
|
|
2490
|
-
"line":
|
|
2505
|
+
"line": 238,
|
|
2491
2506
|
"character": 4
|
|
2492
2507
|
},
|
|
2493
2508
|
"end": {
|
|
2494
|
-
"line":
|
|
2509
|
+
"line": 283,
|
|
2495
2510
|
"character": 6
|
|
2496
2511
|
}
|
|
2497
2512
|
}
|
|
@@ -2502,11 +2517,11 @@
|
|
|
2502
2517
|
"location": {
|
|
2503
2518
|
"path": "payload/pageable/main.tsp",
|
|
2504
2519
|
"start": {
|
|
2505
|
-
"line":
|
|
2520
|
+
"line": 333,
|
|
2506
2521
|
"character": 4
|
|
2507
2522
|
},
|
|
2508
2523
|
"end": {
|
|
2509
|
-
"line":
|
|
2524
|
+
"line": 379,
|
|
2510
2525
|
"character": 6
|
|
2511
2526
|
}
|
|
2512
2527
|
}
|
|
@@ -2517,11 +2532,11 @@
|
|
|
2517
2532
|
"location": {
|
|
2518
2533
|
"path": "payload/pageable/main.tsp",
|
|
2519
2534
|
"start": {
|
|
2520
|
-
"line":
|
|
2535
|
+
"line": 381,
|
|
2521
2536
|
"character": 4
|
|
2522
2537
|
},
|
|
2523
2538
|
"end": {
|
|
2524
|
-
"line":
|
|
2539
|
+
"line": 437,
|
|
2525
2540
|
"character": 6
|
|
2526
2541
|
}
|
|
2527
2542
|
}
|
|
@@ -2532,11 +2547,11 @@
|
|
|
2532
2547
|
"location": {
|
|
2533
2548
|
"path": "payload/pageable/main.tsp",
|
|
2534
2549
|
"start": {
|
|
2535
|
-
"line":
|
|
2550
|
+
"line": 192,
|
|
2536
2551
|
"character": 4
|
|
2537
2552
|
},
|
|
2538
2553
|
"end": {
|
|
2539
|
-
"line":
|
|
2554
|
+
"line": 236,
|
|
2540
2555
|
"character": 6
|
|
2541
2556
|
}
|
|
2542
2557
|
}
|
|
@@ -2547,11 +2562,11 @@
|
|
|
2547
2562
|
"location": {
|
|
2548
2563
|
"path": "payload/pageable/main.tsp",
|
|
2549
2564
|
"start": {
|
|
2550
|
-
"line":
|
|
2565
|
+
"line": 285,
|
|
2551
2566
|
"character": 4
|
|
2552
2567
|
},
|
|
2553
2568
|
"end": {
|
|
2554
|
-
"line":
|
|
2569
|
+
"line": 331,
|
|
2555
2570
|
"character": 6
|
|
2556
2571
|
}
|
|
2557
2572
|
}
|
|
@@ -2607,11 +2622,11 @@
|
|
|
2607
2622
|
"location": {
|
|
2608
2623
|
"path": "payload/pageable/main.tsp",
|
|
2609
2624
|
"start": {
|
|
2610
|
-
"line":
|
|
2625
|
+
"line": 575,
|
|
2611
2626
|
"character": 2
|
|
2612
2627
|
},
|
|
2613
2628
|
"end": {
|
|
2614
|
-
"line":
|
|
2629
|
+
"line": 625,
|
|
2615
2630
|
"character": 4
|
|
2616
2631
|
}
|
|
2617
2632
|
}
|
|
@@ -2622,11 +2637,11 @@
|
|
|
2622
2637
|
"location": {
|
|
2623
2638
|
"path": "payload/pageable/main.tsp",
|
|
2624
2639
|
"start": {
|
|
2625
|
-
"line":
|
|
2640
|
+
"line": 627,
|
|
2626
2641
|
"character": 2
|
|
2627
2642
|
},
|
|
2628
2643
|
"end": {
|
|
2629
|
-
"line":
|
|
2644
|
+
"line": 677,
|
|
2630
2645
|
"character": 4
|
|
2631
2646
|
}
|
|
2632
2647
|
}
|
|
@@ -2637,11 +2652,11 @@
|
|
|
2637
2652
|
"location": {
|
|
2638
2653
|
"path": "payload/xml/main.tsp",
|
|
2639
2654
|
"start": {
|
|
2640
|
-
"line":
|
|
2655
|
+
"line": 30,
|
|
2641
2656
|
"character": 2
|
|
2642
2657
|
},
|
|
2643
2658
|
"end": {
|
|
2644
|
-
"line":
|
|
2659
|
+
"line": 41,
|
|
2645
2660
|
"character": 3
|
|
2646
2661
|
}
|
|
2647
2662
|
}
|
|
@@ -2652,11 +2667,11 @@
|
|
|
2652
2667
|
"location": {
|
|
2653
2668
|
"path": "payload/xml/main.tsp",
|
|
2654
2669
|
"start": {
|
|
2655
|
-
"line":
|
|
2670
|
+
"line": 43,
|
|
2656
2671
|
"character": 2
|
|
2657
2672
|
},
|
|
2658
2673
|
"end": {
|
|
2659
|
-
"line":
|
|
2674
|
+
"line": 51,
|
|
2660
2675
|
"character": 88
|
|
2661
2676
|
}
|
|
2662
2677
|
}
|
|
@@ -2667,11 +2682,11 @@
|
|
|
2667
2682
|
"location": {
|
|
2668
2683
|
"path": "payload/xml/main.tsp",
|
|
2669
2684
|
"start": {
|
|
2670
|
-
"line":
|
|
2685
|
+
"line": 30,
|
|
2671
2686
|
"character": 2
|
|
2672
2687
|
},
|
|
2673
2688
|
"end": {
|
|
2674
|
-
"line":
|
|
2689
|
+
"line": 41,
|
|
2675
2690
|
"character": 3
|
|
2676
2691
|
}
|
|
2677
2692
|
}
|
|
@@ -2682,11 +2697,11 @@
|
|
|
2682
2697
|
"location": {
|
|
2683
2698
|
"path": "payload/xml/main.tsp",
|
|
2684
2699
|
"start": {
|
|
2685
|
-
"line":
|
|
2700
|
+
"line": 43,
|
|
2686
2701
|
"character": 2
|
|
2687
2702
|
},
|
|
2688
2703
|
"end": {
|
|
2689
|
-
"line":
|
|
2704
|
+
"line": 51,
|
|
2690
2705
|
"character": 88
|
|
2691
2706
|
}
|
|
2692
2707
|
}
|
|
@@ -2697,11 +2712,11 @@
|
|
|
2697
2712
|
"location": {
|
|
2698
2713
|
"path": "payload/xml/main.tsp",
|
|
2699
2714
|
"start": {
|
|
2700
|
-
"line":
|
|
2715
|
+
"line": 30,
|
|
2701
2716
|
"character": 2
|
|
2702
2717
|
},
|
|
2703
2718
|
"end": {
|
|
2704
|
-
"line":
|
|
2719
|
+
"line": 41,
|
|
2705
2720
|
"character": 3
|
|
2706
2721
|
}
|
|
2707
2722
|
}
|
|
@@ -2712,11 +2727,11 @@
|
|
|
2712
2727
|
"location": {
|
|
2713
2728
|
"path": "payload/xml/main.tsp",
|
|
2714
2729
|
"start": {
|
|
2715
|
-
"line":
|
|
2730
|
+
"line": 43,
|
|
2716
2731
|
"character": 2
|
|
2717
2732
|
},
|
|
2718
2733
|
"end": {
|
|
2719
|
-
"line":
|
|
2734
|
+
"line": 51,
|
|
2720
2735
|
"character": 88
|
|
2721
2736
|
}
|
|
2722
2737
|
}
|
|
@@ -2727,11 +2742,11 @@
|
|
|
2727
2742
|
"location": {
|
|
2728
2743
|
"path": "payload/xml/main.tsp",
|
|
2729
2744
|
"start": {
|
|
2730
|
-
"line":
|
|
2745
|
+
"line": 30,
|
|
2731
2746
|
"character": 2
|
|
2732
2747
|
},
|
|
2733
2748
|
"end": {
|
|
2734
|
-
"line":
|
|
2749
|
+
"line": 41,
|
|
2735
2750
|
"character": 3
|
|
2736
2751
|
}
|
|
2737
2752
|
}
|
|
@@ -2742,11 +2757,11 @@
|
|
|
2742
2757
|
"location": {
|
|
2743
2758
|
"path": "payload/xml/main.tsp",
|
|
2744
2759
|
"start": {
|
|
2745
|
-
"line":
|
|
2760
|
+
"line": 43,
|
|
2746
2761
|
"character": 2
|
|
2747
2762
|
},
|
|
2748
2763
|
"end": {
|
|
2749
|
-
"line":
|
|
2764
|
+
"line": 51,
|
|
2750
2765
|
"character": 88
|
|
2751
2766
|
}
|
|
2752
2767
|
}
|
|
@@ -2757,11 +2772,11 @@
|
|
|
2757
2772
|
"location": {
|
|
2758
2773
|
"path": "payload/xml/main.tsp",
|
|
2759
2774
|
"start": {
|
|
2760
|
-
"line":
|
|
2775
|
+
"line": 30,
|
|
2761
2776
|
"character": 2
|
|
2762
2777
|
},
|
|
2763
2778
|
"end": {
|
|
2764
|
-
"line":
|
|
2779
|
+
"line": 41,
|
|
2765
2780
|
"character": 3
|
|
2766
2781
|
}
|
|
2767
2782
|
}
|
|
@@ -2772,11 +2787,11 @@
|
|
|
2772
2787
|
"location": {
|
|
2773
2788
|
"path": "payload/xml/main.tsp",
|
|
2774
2789
|
"start": {
|
|
2775
|
-
"line":
|
|
2790
|
+
"line": 43,
|
|
2776
2791
|
"character": 2
|
|
2777
2792
|
},
|
|
2778
2793
|
"end": {
|
|
2779
|
-
"line":
|
|
2794
|
+
"line": 51,
|
|
2780
2795
|
"character": 88
|
|
2781
2796
|
}
|
|
2782
2797
|
}
|
|
@@ -2787,11 +2802,11 @@
|
|
|
2787
2802
|
"location": {
|
|
2788
2803
|
"path": "payload/xml/main.tsp",
|
|
2789
2804
|
"start": {
|
|
2790
|
-
"line":
|
|
2805
|
+
"line": 30,
|
|
2791
2806
|
"character": 2
|
|
2792
2807
|
},
|
|
2793
2808
|
"end": {
|
|
2794
|
-
"line":
|
|
2809
|
+
"line": 41,
|
|
2795
2810
|
"character": 3
|
|
2796
2811
|
}
|
|
2797
2812
|
}
|
|
@@ -2802,11 +2817,11 @@
|
|
|
2802
2817
|
"location": {
|
|
2803
2818
|
"path": "payload/xml/main.tsp",
|
|
2804
2819
|
"start": {
|
|
2805
|
-
"line":
|
|
2820
|
+
"line": 43,
|
|
2806
2821
|
"character": 2
|
|
2807
2822
|
},
|
|
2808
2823
|
"end": {
|
|
2809
|
-
"line":
|
|
2824
|
+
"line": 51,
|
|
2810
2825
|
"character": 88
|
|
2811
2826
|
}
|
|
2812
2827
|
}
|
|
@@ -2817,11 +2832,11 @@
|
|
|
2817
2832
|
"location": {
|
|
2818
2833
|
"path": "payload/xml/main.tsp",
|
|
2819
2834
|
"start": {
|
|
2820
|
-
"line":
|
|
2835
|
+
"line": 30,
|
|
2821
2836
|
"character": 2
|
|
2822
2837
|
},
|
|
2823
2838
|
"end": {
|
|
2824
|
-
"line":
|
|
2839
|
+
"line": 41,
|
|
2825
2840
|
"character": 3
|
|
2826
2841
|
}
|
|
2827
2842
|
}
|
|
@@ -2832,11 +2847,101 @@
|
|
|
2832
2847
|
"location": {
|
|
2833
2848
|
"path": "payload/xml/main.tsp",
|
|
2834
2849
|
"start": {
|
|
2835
|
-
"line":
|
|
2850
|
+
"line": 43,
|
|
2851
|
+
"character": 2
|
|
2852
|
+
},
|
|
2853
|
+
"end": {
|
|
2854
|
+
"line": 51,
|
|
2855
|
+
"character": 88
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
"name": "Payload_Xml_ModelWithNamespaceOnPropertiesValue_get",
|
|
2861
|
+
"scenarioDoc": "Expected response body:\n```xml\n<smp:ModelWithNamespaceOnProperties xmlns:smp=\"http://example.com/schema\" xmlns:ns2=\"http://example.com/ns2\">\n <id>123</id>\n <smp:title>The Great Gatsby</smp:title>\n <ns2:author>F. Scott Fitzgerald</ns2:author>\n</smp:ModelWithNamespaceOnProperties>\n```",
|
|
2862
|
+
"location": {
|
|
2863
|
+
"path": "payload/xml/main.tsp",
|
|
2864
|
+
"start": {
|
|
2865
|
+
"line": 30,
|
|
2866
|
+
"character": 2
|
|
2867
|
+
},
|
|
2868
|
+
"end": {
|
|
2869
|
+
"line": 41,
|
|
2870
|
+
"character": 3
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
"name": "Payload_Xml_ModelWithNamespaceOnPropertiesValue_put",
|
|
2876
|
+
"scenarioDoc": "Expected request body:\n```xml\n<smp:ModelWithNamespaceOnProperties xmlns:smp=\"http://example.com/schema\" xmlns:ns2=\"http://example.com/ns2\">\n <id>123</id>\n <smp:title>The Great Gatsby</smp:title>\n <ns2:author>F. Scott Fitzgerald</ns2:author>\n</smp:ModelWithNamespaceOnProperties>\n```",
|
|
2877
|
+
"location": {
|
|
2878
|
+
"path": "payload/xml/main.tsp",
|
|
2879
|
+
"start": {
|
|
2880
|
+
"line": 43,
|
|
2881
|
+
"character": 2
|
|
2882
|
+
},
|
|
2883
|
+
"end": {
|
|
2884
|
+
"line": 51,
|
|
2885
|
+
"character": 88
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
"name": "Payload_Xml_ModelWithNamespaceValue_get",
|
|
2891
|
+
"scenarioDoc": "Expected response body:\n```xml\n<smp:ModelWithNamespace xmlns:smp=\"http://example.com/schema\">\n <id>123</id>\n <title>The Great Gatsby</title>\n</smp:ModelWithNamespace>\n```",
|
|
2892
|
+
"location": {
|
|
2893
|
+
"path": "payload/xml/main.tsp",
|
|
2894
|
+
"start": {
|
|
2895
|
+
"line": 30,
|
|
2896
|
+
"character": 2
|
|
2897
|
+
},
|
|
2898
|
+
"end": {
|
|
2899
|
+
"line": 41,
|
|
2900
|
+
"character": 3
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
"name": "Payload_Xml_ModelWithNamespaceValue_put",
|
|
2906
|
+
"scenarioDoc": "Expected request body:\n```xml\n<smp:ModelWithNamespace xmlns:smp=\"http://example.com/schema\">\n <id>123</id>\n <title>The Great Gatsby</title>\n</smp:ModelWithNamespace>\n```",
|
|
2907
|
+
"location": {
|
|
2908
|
+
"path": "payload/xml/main.tsp",
|
|
2909
|
+
"start": {
|
|
2910
|
+
"line": 43,
|
|
2911
|
+
"character": 2
|
|
2912
|
+
},
|
|
2913
|
+
"end": {
|
|
2914
|
+
"line": 51,
|
|
2915
|
+
"character": 88
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
"name": "Payload_Xml_ModelWithNestedModelValue_get",
|
|
2921
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithNestedModel>\n <nested>\n <name>foo</name>\n <age>123</age>\n </nested>\n</ModelWithNestedModel>\n```",
|
|
2922
|
+
"location": {
|
|
2923
|
+
"path": "payload/xml/main.tsp",
|
|
2924
|
+
"start": {
|
|
2925
|
+
"line": 30,
|
|
2836
2926
|
"character": 2
|
|
2837
2927
|
},
|
|
2838
2928
|
"end": {
|
|
2839
|
-
"line":
|
|
2929
|
+
"line": 41,
|
|
2930
|
+
"character": 3
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
"name": "Payload_Xml_ModelWithNestedModelValue_put",
|
|
2936
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithNestedModel>\n <nested>\n <name>foo</name>\n <age>123</age>\n </nested>\n</ModelWithNestedModel>\n```",
|
|
2937
|
+
"location": {
|
|
2938
|
+
"path": "payload/xml/main.tsp",
|
|
2939
|
+
"start": {
|
|
2940
|
+
"line": 43,
|
|
2941
|
+
"character": 2
|
|
2942
|
+
},
|
|
2943
|
+
"end": {
|
|
2944
|
+
"line": 51,
|
|
2840
2945
|
"character": 88
|
|
2841
2946
|
}
|
|
2842
2947
|
}
|
|
@@ -2847,11 +2952,11 @@
|
|
|
2847
2952
|
"location": {
|
|
2848
2953
|
"path": "payload/xml/main.tsp",
|
|
2849
2954
|
"start": {
|
|
2850
|
-
"line":
|
|
2955
|
+
"line": 30,
|
|
2851
2956
|
"character": 2
|
|
2852
2957
|
},
|
|
2853
2958
|
"end": {
|
|
2854
|
-
"line":
|
|
2959
|
+
"line": 41,
|
|
2855
2960
|
"character": 3
|
|
2856
2961
|
}
|
|
2857
2962
|
}
|
|
@@ -2862,11 +2967,11 @@
|
|
|
2862
2967
|
"location": {
|
|
2863
2968
|
"path": "payload/xml/main.tsp",
|
|
2864
2969
|
"start": {
|
|
2865
|
-
"line":
|
|
2970
|
+
"line": 43,
|
|
2866
2971
|
"character": 2
|
|
2867
2972
|
},
|
|
2868
2973
|
"end": {
|
|
2869
|
-
"line":
|
|
2974
|
+
"line": 51,
|
|
2870
2975
|
"character": 88
|
|
2871
2976
|
}
|
|
2872
2977
|
}
|
|
@@ -2877,11 +2982,11 @@
|
|
|
2877
2982
|
"location": {
|
|
2878
2983
|
"path": "payload/xml/main.tsp",
|
|
2879
2984
|
"start": {
|
|
2880
|
-
"line":
|
|
2985
|
+
"line": 30,
|
|
2881
2986
|
"character": 2
|
|
2882
2987
|
},
|
|
2883
2988
|
"end": {
|
|
2884
|
-
"line":
|
|
2989
|
+
"line": 41,
|
|
2885
2990
|
"character": 3
|
|
2886
2991
|
}
|
|
2887
2992
|
}
|
|
@@ -2892,11 +2997,41 @@
|
|
|
2892
2997
|
"location": {
|
|
2893
2998
|
"path": "payload/xml/main.tsp",
|
|
2894
2999
|
"start": {
|
|
2895
|
-
"line":
|
|
3000
|
+
"line": 43,
|
|
3001
|
+
"character": 2
|
|
3002
|
+
},
|
|
3003
|
+
"end": {
|
|
3004
|
+
"line": 51,
|
|
3005
|
+
"character": 88
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"name": "Payload_Xml_ModelWithRenamedAttributeValue_get",
|
|
3011
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithRenamedAttribute xml-id=\"123\">\n <title>The Great Gatsby</title>\n <author>F. Scott Fitzgerald</author>\n</ModelWithRenamedAttribute>\n```",
|
|
3012
|
+
"location": {
|
|
3013
|
+
"path": "payload/xml/main.tsp",
|
|
3014
|
+
"start": {
|
|
3015
|
+
"line": 30,
|
|
3016
|
+
"character": 2
|
|
3017
|
+
},
|
|
3018
|
+
"end": {
|
|
3019
|
+
"line": 41,
|
|
3020
|
+
"character": 3
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
},
|
|
3024
|
+
{
|
|
3025
|
+
"name": "Payload_Xml_ModelWithRenamedAttributeValue_put",
|
|
3026
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithRenamedAttribute xml-id=\"123\">\n <title>The Great Gatsby</title>\n <author>F. Scott Fitzgerald</author>\n</ModelWithRenamedAttribute>\n```",
|
|
3027
|
+
"location": {
|
|
3028
|
+
"path": "payload/xml/main.tsp",
|
|
3029
|
+
"start": {
|
|
3030
|
+
"line": 43,
|
|
2896
3031
|
"character": 2
|
|
2897
3032
|
},
|
|
2898
3033
|
"end": {
|
|
2899
|
-
"line":
|
|
3034
|
+
"line": 51,
|
|
2900
3035
|
"character": 88
|
|
2901
3036
|
}
|
|
2902
3037
|
}
|
|
@@ -2907,11 +3042,11 @@
|
|
|
2907
3042
|
"location": {
|
|
2908
3043
|
"path": "payload/xml/main.tsp",
|
|
2909
3044
|
"start": {
|
|
2910
|
-
"line":
|
|
3045
|
+
"line": 30,
|
|
2911
3046
|
"character": 2
|
|
2912
3047
|
},
|
|
2913
3048
|
"end": {
|
|
2914
|
-
"line":
|
|
3049
|
+
"line": 41,
|
|
2915
3050
|
"character": 3
|
|
2916
3051
|
}
|
|
2917
3052
|
}
|
|
@@ -2922,11 +3057,161 @@
|
|
|
2922
3057
|
"location": {
|
|
2923
3058
|
"path": "payload/xml/main.tsp",
|
|
2924
3059
|
"start": {
|
|
2925
|
-
"line":
|
|
3060
|
+
"line": 43,
|
|
3061
|
+
"character": 2
|
|
3062
|
+
},
|
|
3063
|
+
"end": {
|
|
3064
|
+
"line": 51,
|
|
3065
|
+
"character": 88
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
},
|
|
3069
|
+
{
|
|
3070
|
+
"name": "Payload_Xml_ModelWithRenamedNestedModelValue_get",
|
|
3071
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithRenamedNestedModel>\n <author>\n <name>foo</name>\n </author>\n</ModelWithRenamedNestedModel>\n```",
|
|
3072
|
+
"location": {
|
|
3073
|
+
"path": "payload/xml/main.tsp",
|
|
3074
|
+
"start": {
|
|
3075
|
+
"line": 30,
|
|
3076
|
+
"character": 2
|
|
3077
|
+
},
|
|
3078
|
+
"end": {
|
|
3079
|
+
"line": 41,
|
|
3080
|
+
"character": 3
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
"name": "Payload_Xml_ModelWithRenamedNestedModelValue_put",
|
|
3086
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithRenamedNestedModel>\n <author>\n <name>foo</name>\n </author>\n</ModelWithRenamedNestedModel>\n```",
|
|
3087
|
+
"location": {
|
|
3088
|
+
"path": "payload/xml/main.tsp",
|
|
3089
|
+
"start": {
|
|
3090
|
+
"line": 43,
|
|
3091
|
+
"character": 2
|
|
3092
|
+
},
|
|
3093
|
+
"end": {
|
|
3094
|
+
"line": 51,
|
|
3095
|
+
"character": 88
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
"name": "Payload_Xml_ModelWithRenamedPropertyValue_get",
|
|
3101
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithRenamedProperty>\n <renamedTitle>foo</renamedTitle>\n <author>bar</author>\n</ModelWithRenamedProperty>\n```",
|
|
3102
|
+
"location": {
|
|
3103
|
+
"path": "payload/xml/main.tsp",
|
|
3104
|
+
"start": {
|
|
3105
|
+
"line": 30,
|
|
3106
|
+
"character": 2
|
|
3107
|
+
},
|
|
3108
|
+
"end": {
|
|
3109
|
+
"line": 41,
|
|
3110
|
+
"character": 3
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
"name": "Payload_Xml_ModelWithRenamedPropertyValue_put",
|
|
3116
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithRenamedProperty>\n <renamedTitle>foo</renamedTitle>\n <author>bar</author>\n</ModelWithRenamedProperty>\n```",
|
|
3117
|
+
"location": {
|
|
3118
|
+
"path": "payload/xml/main.tsp",
|
|
3119
|
+
"start": {
|
|
3120
|
+
"line": 43,
|
|
3121
|
+
"character": 2
|
|
3122
|
+
},
|
|
3123
|
+
"end": {
|
|
3124
|
+
"line": 51,
|
|
3125
|
+
"character": 88
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
},
|
|
3129
|
+
{
|
|
3130
|
+
"name": "Payload_Xml_ModelWithRenamedUnwrappedModelArrayValue_get",
|
|
3131
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithRenamedUnwrappedModelArray>\n <ModelItem>\n <name>foo</name>\n <age>123</age>\n </ModelItem>\n <ModelItem>\n <name>bar</name>\n <age>456</age>\n </ModelItem>\n</ModelWithRenamedUnwrappedModelArray>\n```",
|
|
3132
|
+
"location": {
|
|
3133
|
+
"path": "payload/xml/main.tsp",
|
|
3134
|
+
"start": {
|
|
3135
|
+
"line": 30,
|
|
3136
|
+
"character": 2
|
|
3137
|
+
},
|
|
3138
|
+
"end": {
|
|
3139
|
+
"line": 41,
|
|
3140
|
+
"character": 3
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
"name": "Payload_Xml_ModelWithRenamedUnwrappedModelArrayValue_put",
|
|
3146
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithRenamedUnwrappedModelArray>\n <ModelItem>\n <name>foo</name>\n <age>123</age>\n </ModelItem>\n <ModelItem>\n <name>bar</name>\n <age>456</age>\n </ModelItem>\n</ModelWithRenamedUnwrappedModelArray>\n```",
|
|
3147
|
+
"location": {
|
|
3148
|
+
"path": "payload/xml/main.tsp",
|
|
3149
|
+
"start": {
|
|
3150
|
+
"line": 43,
|
|
3151
|
+
"character": 2
|
|
3152
|
+
},
|
|
3153
|
+
"end": {
|
|
3154
|
+
"line": 51,
|
|
3155
|
+
"character": 88
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
"name": "Payload_Xml_ModelWithRenamedWrappedAndItemModelArrayValue_get",
|
|
3161
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithRenamedWrappedAndItemModelArray>\n <AllBooks>\n <XmlBook>\n <title>The Great Gatsby</title>\n </XmlBook>\n <XmlBook>\n <title>Les Miserables</title>\n </XmlBook>\n </AllBooks>\n</ModelWithRenamedWrappedAndItemModelArray>\n```",
|
|
3162
|
+
"location": {
|
|
3163
|
+
"path": "payload/xml/main.tsp",
|
|
3164
|
+
"start": {
|
|
3165
|
+
"line": 30,
|
|
3166
|
+
"character": 2
|
|
3167
|
+
},
|
|
3168
|
+
"end": {
|
|
3169
|
+
"line": 41,
|
|
3170
|
+
"character": 3
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
"name": "Payload_Xml_ModelWithRenamedWrappedAndItemModelArrayValue_put",
|
|
3176
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithRenamedWrappedAndItemModelArray>\n <AllBooks>\n <XmlBook>\n <title>The Great Gatsby</title>\n </XmlBook>\n <XmlBook>\n <title>Les Miserables</title>\n </XmlBook>\n </AllBooks>\n</ModelWithRenamedWrappedAndItemModelArray>\n```",
|
|
3177
|
+
"location": {
|
|
3178
|
+
"path": "payload/xml/main.tsp",
|
|
3179
|
+
"start": {
|
|
3180
|
+
"line": 43,
|
|
3181
|
+
"character": 2
|
|
3182
|
+
},
|
|
3183
|
+
"end": {
|
|
3184
|
+
"line": 51,
|
|
3185
|
+
"character": 88
|
|
3186
|
+
}
|
|
3187
|
+
}
|
|
3188
|
+
},
|
|
3189
|
+
{
|
|
3190
|
+
"name": "Payload_Xml_ModelWithRenamedWrappedModelArrayValue_get",
|
|
3191
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithRenamedWrappedModelArray>\n <AllItems>\n <SimpleModel>\n <name>foo</name>\n <age>123</age>\n </SimpleModel>\n <SimpleModel>\n <name>bar</name>\n <age>456</age>\n </SimpleModel>\n </AllItems>\n</ModelWithRenamedWrappedModelArray>\n```",
|
|
3192
|
+
"location": {
|
|
3193
|
+
"path": "payload/xml/main.tsp",
|
|
3194
|
+
"start": {
|
|
3195
|
+
"line": 30,
|
|
2926
3196
|
"character": 2
|
|
2927
3197
|
},
|
|
2928
3198
|
"end": {
|
|
2929
|
-
"line":
|
|
3199
|
+
"line": 41,
|
|
3200
|
+
"character": 3
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
"name": "Payload_Xml_ModelWithRenamedWrappedModelArrayValue_put",
|
|
3206
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithRenamedWrappedModelArray>\n <AllItems>\n <SimpleModel>\n <name>foo</name>\n <age>123</age>\n </SimpleModel>\n <SimpleModel>\n <name>bar</name>\n <age>456</age>\n </SimpleModel>\n </AllItems>\n</ModelWithRenamedWrappedModelArray>\n```",
|
|
3207
|
+
"location": {
|
|
3208
|
+
"path": "payload/xml/main.tsp",
|
|
3209
|
+
"start": {
|
|
3210
|
+
"line": 43,
|
|
3211
|
+
"character": 2
|
|
3212
|
+
},
|
|
3213
|
+
"end": {
|
|
3214
|
+
"line": 51,
|
|
2930
3215
|
"character": 88
|
|
2931
3216
|
}
|
|
2932
3217
|
}
|
|
@@ -2937,11 +3222,11 @@
|
|
|
2937
3222
|
"location": {
|
|
2938
3223
|
"path": "payload/xml/main.tsp",
|
|
2939
3224
|
"start": {
|
|
2940
|
-
"line":
|
|
3225
|
+
"line": 30,
|
|
2941
3226
|
"character": 2
|
|
2942
3227
|
},
|
|
2943
3228
|
"end": {
|
|
2944
|
-
"line":
|
|
3229
|
+
"line": 41,
|
|
2945
3230
|
"character": 3
|
|
2946
3231
|
}
|
|
2947
3232
|
}
|
|
@@ -2952,11 +3237,11 @@
|
|
|
2952
3237
|
"location": {
|
|
2953
3238
|
"path": "payload/xml/main.tsp",
|
|
2954
3239
|
"start": {
|
|
2955
|
-
"line":
|
|
3240
|
+
"line": 43,
|
|
2956
3241
|
"character": 2
|
|
2957
3242
|
},
|
|
2958
3243
|
"end": {
|
|
2959
|
-
"line":
|
|
3244
|
+
"line": 51,
|
|
2960
3245
|
"character": 88
|
|
2961
3246
|
}
|
|
2962
3247
|
}
|
|
@@ -2967,11 +3252,11 @@
|
|
|
2967
3252
|
"location": {
|
|
2968
3253
|
"path": "payload/xml/main.tsp",
|
|
2969
3254
|
"start": {
|
|
2970
|
-
"line":
|
|
3255
|
+
"line": 30,
|
|
2971
3256
|
"character": 2
|
|
2972
3257
|
},
|
|
2973
3258
|
"end": {
|
|
2974
|
-
"line":
|
|
3259
|
+
"line": 41,
|
|
2975
3260
|
"character": 3
|
|
2976
3261
|
}
|
|
2977
3262
|
}
|
|
@@ -2982,11 +3267,11 @@
|
|
|
2982
3267
|
"location": {
|
|
2983
3268
|
"path": "payload/xml/main.tsp",
|
|
2984
3269
|
"start": {
|
|
2985
|
-
"line":
|
|
3270
|
+
"line": 43,
|
|
2986
3271
|
"character": 2
|
|
2987
3272
|
},
|
|
2988
3273
|
"end": {
|
|
2989
|
-
"line":
|
|
3274
|
+
"line": 51,
|
|
2990
3275
|
"character": 88
|
|
2991
3276
|
}
|
|
2992
3277
|
}
|
|
@@ -2997,11 +3282,11 @@
|
|
|
2997
3282
|
"location": {
|
|
2998
3283
|
"path": "payload/xml/main.tsp",
|
|
2999
3284
|
"start": {
|
|
3000
|
-
"line":
|
|
3285
|
+
"line": 30,
|
|
3001
3286
|
"character": 2
|
|
3002
3287
|
},
|
|
3003
3288
|
"end": {
|
|
3004
|
-
"line":
|
|
3289
|
+
"line": 41,
|
|
3005
3290
|
"character": 3
|
|
3006
3291
|
}
|
|
3007
3292
|
}
|
|
@@ -3012,11 +3297,71 @@
|
|
|
3012
3297
|
"location": {
|
|
3013
3298
|
"path": "payload/xml/main.tsp",
|
|
3014
3299
|
"start": {
|
|
3015
|
-
"line":
|
|
3300
|
+
"line": 43,
|
|
3301
|
+
"character": 2
|
|
3302
|
+
},
|
|
3303
|
+
"end": {
|
|
3304
|
+
"line": 51,
|
|
3305
|
+
"character": 88
|
|
3306
|
+
}
|
|
3307
|
+
}
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
"name": "Payload_Xml_ModelWithUnwrappedModelArrayValue_get",
|
|
3311
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithUnwrappedModelArray>\n <items>\n <name>foo</name>\n <age>123</age>\n </items>\n <items>\n <name>bar</name>\n <age>456</age>\n </items>\n</ModelWithUnwrappedModelArray>\n```",
|
|
3312
|
+
"location": {
|
|
3313
|
+
"path": "payload/xml/main.tsp",
|
|
3314
|
+
"start": {
|
|
3315
|
+
"line": 30,
|
|
3316
|
+
"character": 2
|
|
3317
|
+
},
|
|
3318
|
+
"end": {
|
|
3319
|
+
"line": 41,
|
|
3320
|
+
"character": 3
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"name": "Payload_Xml_ModelWithUnwrappedModelArrayValue_put",
|
|
3326
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithUnwrappedModelArray>\n <items>\n <name>foo</name>\n <age>123</age>\n </items>\n <items>\n <name>bar</name>\n <age>456</age>\n </items>\n</ModelWithUnwrappedModelArray>\n```",
|
|
3327
|
+
"location": {
|
|
3328
|
+
"path": "payload/xml/main.tsp",
|
|
3329
|
+
"start": {
|
|
3330
|
+
"line": 43,
|
|
3331
|
+
"character": 2
|
|
3332
|
+
},
|
|
3333
|
+
"end": {
|
|
3334
|
+
"line": 51,
|
|
3335
|
+
"character": 88
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
"name": "Payload_Xml_ModelWithWrappedPrimitiveCustomItemNamesValue_get",
|
|
3341
|
+
"scenarioDoc": "Expected response body:\n```xml\n<ModelWithWrappedPrimitiveCustomItemNames>\n <ItemsTags>\n <ItemName>fiction</ItemName>\n <ItemName>classic</ItemName>\n </ItemsTags>\n</ModelWithWrappedPrimitiveCustomItemNames>\n```",
|
|
3342
|
+
"location": {
|
|
3343
|
+
"path": "payload/xml/main.tsp",
|
|
3344
|
+
"start": {
|
|
3345
|
+
"line": 30,
|
|
3016
3346
|
"character": 2
|
|
3017
3347
|
},
|
|
3018
3348
|
"end": {
|
|
3019
|
-
"line":
|
|
3349
|
+
"line": 41,
|
|
3350
|
+
"character": 3
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
"name": "Payload_Xml_ModelWithWrappedPrimitiveCustomItemNamesValue_put",
|
|
3356
|
+
"scenarioDoc": "Expected request body:\n```xml\n<ModelWithWrappedPrimitiveCustomItemNames>\n <ItemsTags>\n <ItemName>fiction</ItemName>\n <ItemName>classic</ItemName>\n </ItemsTags>\n</ModelWithWrappedPrimitiveCustomItemNames>\n```",
|
|
3357
|
+
"location": {
|
|
3358
|
+
"path": "payload/xml/main.tsp",
|
|
3359
|
+
"start": {
|
|
3360
|
+
"line": 43,
|
|
3361
|
+
"character": 2
|
|
3362
|
+
},
|
|
3363
|
+
"end": {
|
|
3364
|
+
"line": 51,
|
|
3020
3365
|
"character": 88
|
|
3021
3366
|
}
|
|
3022
3367
|
}
|
|
@@ -3027,11 +3372,11 @@
|
|
|
3027
3372
|
"location": {
|
|
3028
3373
|
"path": "payload/xml/main.tsp",
|
|
3029
3374
|
"start": {
|
|
3030
|
-
"line":
|
|
3375
|
+
"line": 30,
|
|
3031
3376
|
"character": 2
|
|
3032
3377
|
},
|
|
3033
3378
|
"end": {
|
|
3034
|
-
"line":
|
|
3379
|
+
"line": 41,
|
|
3035
3380
|
"character": 3
|
|
3036
3381
|
}
|
|
3037
3382
|
}
|
|
@@ -3042,11 +3387,11 @@
|
|
|
3042
3387
|
"location": {
|
|
3043
3388
|
"path": "payload/xml/main.tsp",
|
|
3044
3389
|
"start": {
|
|
3045
|
-
"line":
|
|
3390
|
+
"line": 43,
|
|
3046
3391
|
"character": 2
|
|
3047
3392
|
},
|
|
3048
3393
|
"end": {
|
|
3049
|
-
"line":
|
|
3394
|
+
"line": 51,
|
|
3050
3395
|
"character": 88
|
|
3051
3396
|
}
|
|
3052
3397
|
}
|
|
@@ -3057,11 +3402,11 @@
|
|
|
3057
3402
|
"location": {
|
|
3058
3403
|
"path": "payload/xml/main.tsp",
|
|
3059
3404
|
"start": {
|
|
3060
|
-
"line":
|
|
3405
|
+
"line": 686,
|
|
3061
3406
|
"character": 2
|
|
3062
3407
|
},
|
|
3063
3408
|
"end": {
|
|
3064
|
-
"line":
|
|
3409
|
+
"line": 700,
|
|
3065
3410
|
"character": 14
|
|
3066
3411
|
}
|
|
3067
3412
|
}
|