fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at feat/use-query-options 1167 lines 32 kB view raw
1swagger: '2.0' 2info: 3 title: swagger 4 version: v1.0 5host: localhost:3000 6basePath: /base 7schemes: 8 - http 9paths: 10 /api/v{api-version}/no+tag: 11 tags: [] 12 get: 13 operationId: ServiceWithEmptyTag 14 patch: 15 responses: 16 default: 17 description: OK 18 put: 19 operationId: foo+Wow 20 responses: 21 default: 22 description: OK 23 /api/v{api-version}/simple: 24 get: 25 tags: 26 - Simple 27 operationId: GetCallWithoutParametersAndResponse 28 put: 29 tags: 30 - Simple 31 operationId: PutCallWithoutParametersAndResponse 32 post: 33 tags: 34 - Simple 35 operationId: PostCallWithoutParametersAndResponse 36 delete: 37 tags: 38 - Simple 39 operationId: DeleteCallWithoutParametersAndResponse 40 options: 41 tags: 42 - Simple 43 operationId: OptionsCallWithoutParametersAndResponse 44 head: 45 tags: 46 - Simple 47 operationId: HeadCallWithoutParametersAndResponse 48 patch: 49 tags: 50 - Simple 51 operationId: PatchCallWithoutParametersAndResponse 52 /api/v{api-version}/descriptions/: 53 post: 54 tags: 55 - Descriptions 56 operationId: CallWithDescriptions 57 parameters: 58 - description: |- 59 Testing multiline comments in string: First line 60 Second line 61 62 Fourth line 63 name: parameterWithBreaks 64 in: query 65 type: string 66 - description: 'Testing backticks in string: `backticks` and ```multiple 67 backticks``` should work' 68 name: parameterWithBackticks 69 in: query 70 type: string 71 - description: "Testing slashes in string: \\backwards\\\\\\ and /forwards/// 72 should work" 73 name: parameterWithSlashes 74 in: query 75 type: string 76 - description: 'Testing expression placeholders in string: ${expression} should 77 work' 78 name: parameterWithExpressionPlaceholders 79 in: query 80 type: string 81 - description: 'Testing quotes in string: ''single quote'''''' and "double 82 quotes""" should work' 83 name: parameterWithQuotes 84 in: query 85 type: string 86 - description: 'Testing reserved characters in string: /* inline */ and /** inline 87 **/ should work' 88 name: parameterWithReservedCharacters 89 in: query 90 type: string 91 /api/v{api-version}/parameters/{parameterPath}: 92 post: 93 tags: 94 - Parameters 95 operationId: CallWithParameters 96 parameters: 97 - description: This is the parameter that goes into the header 98 name: parameterHeader 99 in: header 100 type: string 101 required: true 102 - description: This is the parameter that goes into the query params 103 name: parameterQuery 104 in: query 105 type: string 106 required: true 107 - description: This is the parameter that goes into the form data 108 name: parameterForm 109 in: formData 110 type: string 111 required: true 112 - description: This is the parameter that goes into the path 113 name: parameterPath 114 in: path 115 type: string 116 required: true 117 - description: api-version should be required in standalone clients 118 name: api-version 119 in: path 120 type: string 121 required: true 122 /api/v{api-version}/parameters/{parameter.path.1}/{parameter-path-2}/{PARAMETER-PATH-3}: 123 post: 124 tags: 125 - Parameters 126 operationId: CallWithWeirdParameterNames 127 parameters: 128 - description: This is the parameter that goes into the path 129 name: parameter.path.1 130 in: path 131 type: string 132 required: false 133 - description: This is the parameter that goes into the path 134 name: parameter-path-2 135 in: path 136 type: string 137 required: false 138 - description: This is the parameter that goes into the path 139 name: PARAMETER-PATH-3 140 in: path 141 type: string 142 required: false 143 - description: This is the parameter with a reserved keyword 144 name: default 145 in: query 146 type: string 147 required: false 148 - description: This is the parameter that goes into the request header 149 name: parameter.header 150 in: header 151 type: string 152 required: true 153 - description: This is the parameter that goes into the request query params 154 name: parameter-query 155 in: query 156 type: string 157 required: true 158 - description: This is the parameter that is sent as request body 159 name: PARAMETER-BODY 160 in: body 161 required: true 162 schema: 163 type: string 164 - description: api-version should be required in standalone clients 165 name: api-version 166 in: path 167 type: string 168 required: true 169 /api/v{api-version}/defaults: 170 get: 171 tags: 172 - Defaults 173 operationId: CallWithDefaultParameters 174 parameters: 175 - description: This is a simple string with default value 176 name: parameterString 177 in: query 178 required: true 179 default: Hello World! 180 type: string 181 - description: This is a simple number with default value 182 name: parameterNumber 183 in: query 184 required: true 185 default: 123 186 type: number 187 - description: This is a simple boolean with default value 188 name: parameterBoolean 189 in: query 190 required: true 191 default: true 192 type: boolean 193 - description: This is a simple enum with default value 194 name: parameterEnum 195 in: query 196 required: true 197 default: 0 198 enum: 199 - Success 200 - Warning 201 - Error 202 - description: This is a simple model with default value 203 name: parameterModel 204 in: query 205 required: true 206 default: 207 prop: Hello World! 208 $ref: '#/definitions/ModelWithString' 209 post: 210 tags: 211 - Defaults 212 operationId: CallWithDefaultOptionalParameters 213 parameters: 214 - description: This is a simple string that is optional with default value 215 name: parameterString 216 in: query 217 default: Hello World! 218 type: string 219 - description: This is a simple number that is optional with default value 220 name: parameterNumber 221 in: query 222 default: 123 223 type: number 224 - description: This is a simple boolean that is optional with default value 225 name: parameterBoolean 226 in: query 227 default: true 228 type: boolean 229 - description: This is a simple enum that is optional with default value 230 name: parameterEnum 231 in: query 232 default: 0 233 enum: 234 - Success 235 - Warning 236 - Error 237 put: 238 tags: 239 - Defaults 240 operationId: CallToTestOrderOfParams 241 parameters: 242 - description: This is a optional string with default 243 name: parameterOptionalStringWithDefault 244 in: query 245 required: false 246 default: Hello World! 247 type: string 248 - description: This is a optional string with empty default 249 name: parameterOptionalStringWithEmptyDefault 250 in: query 251 required: false 252 default: '' 253 type: string 254 - description: This is a optional string with no default 255 name: parameterOptionalStringWithNoDefault 256 in: query 257 required: false 258 type: string 259 - description: This is a string with default 260 name: parameterStringWithDefault 261 in: query 262 required: true 263 default: Hello World! 264 type: string 265 - description: This is a string with empty default 266 name: parameterStringWithEmptyDefault 267 in: query 268 required: true 269 default: '' 270 type: string 271 - description: This is a string with no default 272 name: parameterStringWithNoDefault 273 in: query 274 required: true 275 type: string 276 - x-nullable: true 277 description: This is a string that can be null with no default 278 name: parameterStringNullableWithNoDefault 279 in: query 280 required: false 281 type: string 282 - x-nullable: true 283 description: This is a string that can be null with default 284 name: parameterStringNullableWithDefault 285 in: query 286 required: false 287 type: string 288 default: null 289 /api/v{api-version}/duplicate: 290 delete: 291 tags: 292 - Duplicate 293 operationId: DuplicateName 294 get: 295 tags: 296 - Duplicate 297 operationId: DuplicateName2 298 post: 299 tags: 300 - Duplicate 301 operationId: DuplicateName3 302 put: 303 tags: 304 - Duplicate 305 operationId: DuplicateName4 306 /api/v{api-version}/no-content: 307 get: 308 tags: 309 - NoContent 310 operationId: CallWithNoContentResponse 311 responses: 312 '204': 313 description: Success 314 /api/v{api-version}/multiple-tags/response-and-no-content: 315 get: 316 tags: 317 - Response 318 - NoContent 319 operationId: CallWithResponseAndNoContentResponse 320 produces: 321 - application/json 322 responses: 323 '200': 324 description: Response is a simple number 325 schema: 326 type: number 327 '204': 328 description: Success 329 /api/v{api-version}/multiple-tags/a: 330 get: 331 tags: 332 - MultipleTags1 333 - MultipleTags2 334 operationId: DummyA 335 responses: 336 '204': 337 description: Success 338 /api/v{api-version}/multiple-tags/b: 339 get: 340 tags: 341 - MultipleTags1 342 - MultipleTags2 343 - MultipleTags3 344 operationId: DummyB 345 responses: 346 '204': 347 description: Success 348 /api/v{api-version}/response: 349 get: 350 tags: 351 - Response 352 operationId: CallWithResponse 353 responses: 354 default: 355 description: Message for default response 356 schema: 357 $ref: '#/definitions/ModelWithString' 358 post: 359 tags: 360 - Response 361 operationId: CallWithDuplicateResponses 362 responses: 363 '201': 364 description: Message for 201 response 365 schema: 366 $ref: '#/definitions/ModelWithString' 367 '202': 368 description: Message for 202 response 369 schema: 370 $ref: '#/definitions/ModelWithString' 371 '500': 372 description: Message for 500 error 373 schema: 374 $ref: '#/definitions/ModelWithStringError' 375 '501': 376 description: Message for 501 error 377 schema: 378 $ref: '#/definitions/ModelWithStringError' 379 '502': 380 description: Message for 502 error 381 schema: 382 $ref: '#/definitions/ModelWithStringError' 383 default: 384 description: Message for default response 385 schema: 386 $ref: '#/definitions/ModelWithString' 387 put: 388 tags: 389 - Response 390 operationId: CallWithResponses 391 responses: 392 '200': 393 description: Message for 200 response 394 schema: 395 type: object 396 properties: 397 '@namespace.string': 398 type: string 399 readOnly: true 400 '@namespace.integer': 401 type: integer 402 readOnly: true 403 value: 404 type: array 405 items: 406 $ref: '#/definitions/ModelWithString' 407 readOnly: true 408 '201': 409 description: Message for 201 response 410 schema: 411 $ref: '#/definitions/ModelThatExtends' 412 '202': 413 description: Message for 202 response 414 schema: 415 $ref: '#/definitions/ModelThatExtendsExtends' 416 '500': 417 description: Message for 500 error 418 schema: 419 $ref: '#/definitions/ModelWithStringError' 420 '501': 421 description: Message for 501 error 422 schema: 423 $ref: '#/definitions/ModelWithStringError' 424 '502': 425 description: Message for 502 error 426 schema: 427 $ref: '#/definitions/ModelWithStringError' 428 default: 429 description: Message for default response 430 schema: 431 $ref: '#/definitions/ModelWithString' 432 /api/v{api-version}/collectionFormat: 433 get: 434 tags: 435 - CollectionFormat 436 operationId: CollectionFormat 437 parameters: 438 - description: This is an array parameter that is sent as csv format 439 (comma-separated values) 440 name: parameterArrayCSV 441 in: query 442 required: true 443 type: array 444 items: 445 type: string 446 collectionFormat: csv 447 - description: This is an array parameter that is sent as ssv format 448 (space-separated values) 449 name: parameterArraySSV 450 in: query 451 required: true 452 type: array 453 items: 454 type: string 455 collectionFormat: ssv 456 - description: This is an array parameter that is sent as tsv format 457 (tab-separated values) 458 name: parameterArrayTSV 459 in: query 460 required: true 461 type: array 462 items: 463 type: string 464 collectionFormat: tsv 465 - description: This is an array parameter that is sent as pipes format 466 (pipe-separated values) 467 name: parameterArrayPipes 468 in: query 469 required: true 470 type: array 471 items: 472 type: string 473 collectionFormat: pipes 474 - description: This is an array parameter that is sent as multi format (multiple 475 parameter instances) 476 name: parameterArrayMulti 477 in: query 478 required: true 479 type: array 480 items: 481 type: string 482 collectionFormat: multi 483 /api/v{api-version}/types: 484 get: 485 tags: 486 - Types 487 operationId: Types 488 parameters: 489 - description: This is a number parameter 490 name: parameterNumber 491 in: query 492 required: true 493 default: 123 494 type: number 495 - description: This is a string parameter 496 name: parameterString 497 in: query 498 required: true 499 default: default 500 type: string 501 - description: This is a boolean parameter 502 name: parameterBoolean 503 in: query 504 required: true 505 default: true 506 type: boolean 507 - description: This is an array parameter 508 name: parameterArray 509 in: query 510 required: true 511 type: array 512 items: 513 type: string 514 - description: This is a dictionary parameter 515 name: parameterDictionary 516 in: query 517 required: true 518 type: object 519 items: 520 type: string 521 - description: This is an enum parameter 522 name: parameterEnum 523 in: query 524 required: true 525 enum: 526 - Success 527 - Warning 528 - Error 529 - description: This is a number parameter 530 name: id 531 in: path 532 type: integer 533 format: int32 534 responses: 535 '200': 536 description: Response is a simple number 537 schema: 538 type: number 539 '201': 540 description: Response is a simple string 541 schema: 542 type: string 543 '202': 544 description: Response is a simple boolean 545 schema: 546 type: boolean 547 '203': 548 description: Response is a simple object 549 default: null 550 schema: 551 type: object 552 /api/v{api-version}/complex: 553 get: 554 tags: 555 - Complex 556 operationId: ComplexTypes 557 parameters: 558 - description: Parameter containing object 559 name: parameterObject 560 in: query 561 required: true 562 type: object 563 properties: 564 first: 565 type: object 566 properties: 567 second: 568 type: object 569 properties: 570 third: 571 type: string 572 - description: Parameter containing reference 573 name: parameterReference 574 in: query 575 required: true 576 $ref: '#/definitions/ModelWithString' 577 responses: 578 '200': 579 description: Successful response 580 schema: 581 type: array 582 items: 583 $ref: '#/definitions/ModelWithString' 584 '400': 585 description: 400 server error 586 '500': 587 description: 500 server error 588 /api/v{api-version}/header: 589 post: 590 tags: 591 - Header 592 operationId: CallWithResultFromHeader 593 responses: 594 '200': 595 description: Successful response 596 headers: 597 operation-location: 598 type: string 599 '400': 600 description: 400 server error 601 '500': 602 description: 500 server error 603 /api/v{api-version}/error: 604 post: 605 tags: 606 - Error 607 operationId: testErrorCode 608 parameters: 609 - description: Status code to return 610 name: status 611 in: query 612 type: string 613 required: true 614 responses: 615 '200': 616 description: 'Custom message: Successful response' 617 '500': 618 description: 'Custom message: Internal Server Error' 619 '501': 620 description: 'Custom message: Not Implemented' 621 '502': 622 description: 'Custom message: Bad Gateway' 623 '503': 624 description: 'Custom message: Service Unavailable' 625 /api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串: 626 post: 627 tags: 628 - Non-Ascii-æøåÆØÅöôêÊ 629 operationId: nonAsciiæøåÆØÅöôêÊ字符串 630 parameters: 631 - description: Dummy input param 632 name: nonAsciiParamæøåÆØÅöôêÊ 633 in: query 634 required: true 635 type: integer 636 responses: 637 '200': 638 description: Successful response 639 schema: 640 $ref: '#/definitions/NonAsciiStringæøåÆØÅöôêÊ字符串' 641 /api/v{api-version}/body: 642 post: 643 description: Body should not be unknown 644 consumes: 645 - application/json 646 produces: 647 - application/json 648 summary: Body should not be unknown 649 parameters: 650 - description: Body should not be unknown 651 name: request 652 in: body 653 required: true 654 schema: 655 $ref: '#/definitions/parameter.ActivityParams' 656 responses: 657 '200': 658 description: OK 659 schema: 660 $ref: '#/definitions/response.PostActivityResponse' 661 '400': 662 description: Bad Request 663 schema: 664 $ref: '#/definitions/failure.Failure' 665 '500': 666 description: Internal Server Error 667 schema: 668 $ref: '#/definitions/failure.Failure' 669definitions: 670 ExternalRefA: 671 description: External ref to shared model (A) 672 $ref: './external-shared.json#/definitions/ExternalSharedModel' 673 ExternalRefB: 674 description: External ref to shared model (B) 675 $ref: './external-shared.json#/definitions/ExternalSharedModel' 676 CommentWithBreaks: 677 description: |- 678 Testing multiline comments in string: First line 679 Second line 680 681 Fourth line 682 type: integer 683 CommentWithBackticks: 684 description: 'Testing backticks in string: `backticks` and ```multiple 685 backticks``` should work' 686 type: integer 687 CommentWithBackticksAndQuotes: 688 description: 'Testing backticks and quotes in string: `backticks`, ''quotes'', 689 "double quotes" and ```multiple backticks``` should work' 690 type: integer 691 CommentWithSlashes: 692 description: "Testing slashes in string: \\backwards\\\\\\ and /forwards/// should work" 693 type: integer 694 CommentWithExpressionPlaceholders: 695 description: 'Testing expression placeholders in string: ${expression} should work' 696 type: integer 697 CommentWithQuotes: 698 description: 'Testing quotes in string: ''single quote'''''' and "double 699 quotes""" should work' 700 type: integer 701 CommentWithReservedCharacters: 702 description: 'Testing reserved characters in string: /* inline */ and /** inline 703 **/ should work' 704 type: integer 705 SimpleInteger: 706 description: This is a simple number 707 type: integer 708 SimpleBoolean: 709 description: This is a simple boolean 710 type: boolean 711 SimpleString: 712 description: This is a simple string 713 type: string 714 NonAsciiStringæøåÆØÅöôêÊ字符串: 715 description: A string with non-ascii (unicode) characters valid in typescript 716 identifiers (æøåÆØÅöÔèÈ字符串) 717 type: string 718 SimpleFile: 719 description: This is a simple file 720 format: binary 721 type: string 722 SimpleReference: 723 description: This is a simple reference 724 $ref: '#/definitions/ModelWithString' 725 SimpleStringWithPattern: 726 description: This is a simple string 727 type: string 728 maxLength: 64 729 pattern: ^[a-zA-Z0-9_]*$ 730 EnumWithStrings: 731 description: This is a simple enum with strings 732 enum: 733 - Success 734 - Warning 735 - Error 736 - "'Single Quote'" 737 - '"Double Quotes"' 738 - 'Non-ascii: øæåôöØÆÅÔÖ字符串' 739 EnumWithNumbers: 740 description: This is a simple enum with numbers 741 enum: 742 - 1 743 - 2 744 - 3 745 - 1.1 746 - 1.2 747 - 1.3 748 - 100 749 - 200 750 - 300 751 - -100 752 - -200 753 - -300 754 - -1.1 755 - -1.2 756 - -1.3 757 EnumFromDescription: 758 description: Success=1,Warning=2,Error=3 759 type: number 760 EnumWithExtensions: 761 description: This is a simple enum with numbers 762 enum: 763 - 200 764 - 400 765 - 500 766 x-enum-varnames: 767 - CUSTOM_SUCCESS 768 - CUSTOM_WARNING 769 - CUSTOM_ERROR 770 x-enum-descriptions: 771 - Used when the status of something is successful 772 - Used when the status of something has a warning 773 - Used when the status of something has an error 774 ArrayWithNumbers: 775 description: This is a simple array with numbers 776 type: array 777 items: 778 type: integer 779 ArrayWithBooleans: 780 description: This is a simple array with booleans 781 type: array 782 items: 783 type: boolean 784 ArrayWithStrings: 785 description: This is a simple array with strings 786 type: array 787 items: 788 type: string 789 ArrayWithReferences: 790 description: This is a simple array with references 791 type: array 792 items: 793 $ref: '#/definitions/ModelWithString' 794 ArrayWithArray: 795 description: This is a simple array containing an array 796 type: array 797 items: 798 type: array 799 items: 800 $ref: '#/definitions/ModelWithString' 801 ArrayWithProperties: 802 description: This is a simple array with properties 803 type: array 804 items: 805 type: object 806 properties: 807 foo: 808 type: string 809 bar: 810 type: string 811 DictionaryWithString: 812 description: This is a string dictionary 813 type: object 814 additionalProperties: 815 type: string 816 DictionaryWithReference: 817 description: This is a string reference 818 type: object 819 additionalProperties: 820 $ref: '#/definitions/ModelWithString' 821 DictionaryWithArray: 822 description: This is a complex dictionary 823 type: object 824 additionalProperties: 825 type: array 826 items: 827 $ref: '#/definitions/ModelWithString' 828 DictionaryWithDictionary: 829 description: This is a string dictionary 830 type: object 831 additionalProperties: 832 type: object 833 additionalProperties: 834 type: string 835 DictionaryWithProperties: 836 description: This is a complex dictionary 837 type: object 838 additionalProperties: 839 type: object 840 properties: 841 foo: 842 type: string 843 bar: 844 type: string 845 Date: 846 description: This is a type-only model that defines Date as a string 847 type: string 848 ModelWithInteger: 849 description: This is a model with one number property 850 type: object 851 properties: 852 prop: 853 description: This is a simple number property 854 type: integer 855 ModelWithBoolean: 856 description: This is a model with one boolean property 857 type: object 858 properties: 859 prop: 860 description: This is a simple boolean property 861 type: boolean 862 ModelWithString: 863 description: This is a model with one string property 864 type: object 865 properties: 866 prop: 867 description: This is a simple string property 868 type: string 869 ModelWithStringError: 870 description: This is a model with one string property 871 type: object 872 properties: 873 prop: 874 description: This is a simple string property 875 type: string 876 ModelWithNullableString: 877 description: This is a model with one string property 878 type: object 879 required: 880 - nullableRequiredProp 881 properties: 882 nullableProp: 883 description: This is a simple string property 884 type: string 885 x-nullable: true 886 nullableRequiredProp: 887 description: This is a simple string property 888 type: string 889 x-nullable: true 890 ModelWithEnum: 891 description: This is a model with one enum 892 type: object 893 properties: 894 test: 895 description: This is a simple enum with strings 896 enum: 897 - Success 898 - Warning 899 - Error 900 - ØÆÅ字符串 901 statusCode: 902 description: These are the HTTP error code enums 903 enum: 904 - '100' 905 - 200 FOO 906 - 300 FOO_BAR 907 - 400 foo-bar 908 - 500 foo.bar 909 - 600 foo&bar 910 bool: 911 description: Simple boolean enum 912 type: boolean 913 enum: 914 - true 915 ModelWithEnumFromDescription: 916 description: This is a model with one enum 917 type: object 918 properties: 919 test: 920 type: integer 921 description: Success=1,Warning=2,Error=3 922 ModelWithNestedEnums: 923 description: This is a model with nested enums 924 type: object 925 properties: 926 dictionaryWithEnum: 927 type: object 928 additionalProperties: 929 enum: 930 - Success 931 - Warning 932 - Error 933 dictionaryWithEnumFromDescription: 934 type: object 935 additionalProperties: 936 type: integer 937 description: Success=1,Warning=2,Error=3 938 arrayWithEnum: 939 type: array 940 items: 941 enum: 942 - Success 943 - Warning 944 - Error 945 arrayWithDescription: 946 type: array 947 items: 948 type: integer 949 description: Success=1,Warning=2,Error=3 950 ModelWithReference: 951 description: This is a model with one property containing a reference 952 type: object 953 properties: 954 prop: 955 $ref: '#/definitions/ModelWithProperties' 956 ModelWithArray: 957 description: This is a model with one property containing an array 958 type: object 959 properties: 960 prop: 961 type: array 962 items: 963 $ref: '#/definitions/ModelWithString' 964 propWithFile: 965 type: array 966 items: 967 format: binary 968 type: string 969 propWithNumber: 970 type: array 971 items: 972 type: number 973 ModelWithDictionary: 974 description: This is a model with one property containing a dictionary 975 type: object 976 properties: 977 prop: 978 type: object 979 additionalProperties: 980 type: string 981 ModelWithCircularReference: 982 description: This is a model with one property containing a circular reference 983 type: object 984 properties: 985 prop: 986 $ref: '#/definitions/ModelWithCircularReference' 987 ModelWithProperties: 988 description: This is a model with one nested property 989 type: object 990 required: 991 - required 992 - requiredAndReadOnly 993 properties: 994 required: 995 type: string 996 requiredAndReadOnly: 997 type: string 998 readOnly: true 999 string: 1000 type: string 1001 number: 1002 type: number 1003 boolean: 1004 type: boolean 1005 reference: 1006 $ref: '#/definitions/ModelWithString' 1007 property with space: 1008 type: string 1009 default: 1010 type: string 1011 try: 1012 type: string 1013 '@namespace.string': 1014 type: string 1015 readOnly: true 1016 '@namespace.integer': 1017 type: integer 1018 readOnly: true 1019 ModelWithNestedProperties: 1020 description: This is a model with one nested property 1021 type: object 1022 required: 1023 - first 1024 properties: 1025 first: 1026 type: object 1027 required: 1028 - second 1029 readOnly: true 1030 properties: 1031 second: 1032 type: object 1033 required: 1034 - third 1035 readOnly: true 1036 properties: 1037 third: 1038 type: string 1039 readOnly: true 1040 ModelWithDuplicateProperties: 1041 description: This is a model with duplicated properties 1042 type: object 1043 properties: 1044 prop: 1045 $ref: '#/definitions/ModelWithString' 1046 ModelWithOrderedProperties: 1047 description: This is a model with ordered properties 1048 type: object 1049 properties: 1050 zebra: 1051 type: string 1052 apple: 1053 type: string 1054 hawaii: 1055 type: string 1056 ModelWithDuplicateImports: 1057 description: This is a model with duplicated imports 1058 type: object 1059 properties: 1060 propA: 1061 $ref: '#/definitions/ModelWithString' 1062 propB: 1063 $ref: '#/definitions/ModelWithString' 1064 propC: 1065 $ref: '#/definitions/ModelWithString' 1066 ModelThatExtends: 1067 description: This is a model that extends another model 1068 type: object 1069 allOf: 1070 - $ref: '#/definitions/ModelWithString' 1071 - type: object 1072 properties: 1073 propExtendsA: 1074 type: string 1075 propExtendsB: 1076 $ref: '#/definitions/ModelWithString' 1077 ModelThatExtendsExtends: 1078 description: This is a model that extends another model 1079 type: object 1080 allOf: 1081 - $ref: '#/definitions/ModelWithString' 1082 - $ref: '#/definitions/ModelThatExtends' 1083 - type: object 1084 properties: 1085 propExtendsC: 1086 type: string 1087 propExtendsD: 1088 $ref: '#/definitions/ModelWithString' 1089 default: 1090 type: object 1091 properties: 1092 name: 1093 type: string 1094 ModelWithPattern: 1095 description: This is a model that contains a some patterns 1096 type: object 1097 required: 1098 - key 1099 - name 1100 properties: 1101 key: 1102 maxLength: 64 1103 pattern: ^[a-zA-Z0-9_]*$ 1104 type: string 1105 name: 1106 maxLength: 255 1107 type: string 1108 enabled: 1109 type: boolean 1110 readOnly: true 1111 modified: 1112 type: string 1113 format: date-time 1114 readOnly: true 1115 id: 1116 type: string 1117 pattern: ^\d{2}-\d{3}-\d{4}$ 1118 text: 1119 type: string 1120 pattern: ^\w+$ 1121 patternWithSingleQuotes: 1122 type: string 1123 pattern: ^[a-zA-Z0-9']*$ 1124 patternWithNewline: 1125 type: string 1126 pattern: aaa\nbbb 1127 patternWithBacktick: 1128 type: string 1129 pattern: aaa`bbb 1130 patternWithUnicode: 1131 type: string 1132 pattern: ^\p{L}+$ 1133 parameter.ActivityParams: 1134 type: object 1135 properties: 1136 description: 1137 type: string 1138 graduate_id: 1139 type: integer 1140 organization_id: 1141 type: integer 1142 parent_activity: 1143 type: integer 1144 post_id: 1145 type: integer 1146 response.PostActivityResponse: 1147 type: object 1148 properties: 1149 description: 1150 type: string 1151 graduate_id: 1152 type: integer 1153 organization_id: 1154 type: integer 1155 parent_activity_id: 1156 type: integer 1157 post_id: 1158 type: integer 1159 failure.Failure: 1160 type: object 1161 properties: 1162 error: 1163 type: string 1164 message: 1165 type: string 1166 reference_code: 1167 type: string