codekingpro/portable-devtools
114k
1[2 {3 "description": "Petstore",4 "schema": {5 "title": "A JSON Schema for Swagger 2.0 API.",6 "id": "http://swagger.io/v2/schema.json#",7 "$schema": "http://json-schema.org/draft-04/schema#",8 "type": "object",9 "required": [10 "swagger",11 "info",12 "paths"13 ],14 "additionalProperties": false,15 "patternProperties": {16 "^x-": {17 "$ref": "#/definitions/vendorExtension"18 }19 },20 "properties": {21 "swagger": {22 "type": "string",23 "enum": [24 "2.0"25 ],26 "description": "The Swagger version of this document."27 },28 "info": {29 "$ref": "#/definitions/info"30 },31 "host": {32 "type": "string",33 "pattern": "^[^{}/ :\\\\]+(?::\\d+)?$",34 "description": "The host (name or ip) of the API. Example: 'swagger.io'"35 },36 "basePath": {37 "type": "string",38 "pattern": "^/",39 "description": "The base path to the API. Example: '/api'."40 },41 "schemes": {42 "$ref": "#/definitions/schemesList"43 },44 "consumes": {45 "description": "A list of MIME types accepted by the API.",46 "allOf": [47 {48 "$ref": "#/definitions/mediaTypeList"49 }50 ]51 },52 "produces": {53 "description": "A list of MIME types the API can produce.",54 "allOf": [55 {56 "$ref": "#/definitions/mediaTypeList"57 }58 ]59 },60 "paths": {61 "$ref": "#/definitions/paths"62 },63 "definitions": {64 "$ref": "#/definitions/definitions"65 },66 "parameters": {67 "$ref": "#/definitions/parameterDefinitions"68 },69 "responses": {70 "$ref": "#/definitions/responseDefinitions"71 },72 "security": {73 "$ref": "#/definitions/security"74 },75 "securityDefinitions": {76 "$ref": "#/definitions/securityDefinitions"77 },78 "tags": {79 "type": "array",80 "items": {81 "$ref": "#/definitions/tag"82 },83 "uniqueItems": true84 },85 "externalDocs": {86 "$ref": "#/definitions/externalDocs"87 }88 },89 "definitions": {90 "info": {91 "type": "object",92 "description": "General information about the API.",93 "required": [94 "version",95 "title"96 ],97 "additionalProperties": false,98 "patternProperties": {99 "^x-": {100 "$ref": "#/definitions/vendorExtension"101 }102 },103 "properties": {104 "title": {105 "type": "string",106 "description": "A unique and precise title of the API."107 },108 "version": {109 "type": "string",110 "description": "A semantic version number of the API."111 },112 "description": {113 "type": "string",114 "description": "A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."115 },116 "termsOfService": {117 "type": "string",118 "description": "The terms of service for the API."119 },120 "contact": {121 "$ref": "#/definitions/contact"122 },123 "license": {124 "$ref": "#/definitions/license"125 }126 }127 },128 "contact": {129 "type": "object",130 "description": "Contact information for the owners of the API.",131 "additionalProperties": false,132 "properties": {133 "name": {134 "type": "string",135 "description": "The identifying name of the contact person/organization."136 },137 "url": {138 "type": "string",139 "description": "The URL pointing to the contact information.",140 "format": "uri"141 },142 "email": {143 "type": "string",144 "description": "The email address of the contact person/organization.",145 "format": "email"146 }147 },148 "patternProperties": {149 "^x-": {150 "$ref": "#/definitions/vendorExtension"151 }152 }153 },154 "license": {155 "type": "object",156 "required": [157 "name"158 ],159 "additionalProperties": false,160 "properties": {161 "name": {162 "type": "string",163 "description": "The name of the license type. It's encouraged to use an OSI compatible license."164 },165 "url": {166 "type": "string",167 "description": "The URL pointing to the license.",168 "format": "uri"169 }170 },171 "patternProperties": {172 "^x-": {173 "$ref": "#/definitions/vendorExtension"174 }175 }176 },177 "paths": {178 "type": "object",179 "description": "Relative paths to the individual endpoints. They must be relative to the 'basePath'.",180 "patternProperties": {181 "^x-": {182 "$ref": "#/definitions/vendorExtension"183 },184 "^/": {185 "$ref": "#/definitions/pathItem"186 }187 },188 "additionalProperties": false189 },190 "definitions": {191 "type": "object",192 "additionalProperties": {193 "$ref": "#/definitions/schema"194 },195 "description": "One or more JSON objects describing the schemas being consumed and produced by the API."196 },197 "parameterDefinitions": {198 "type": "object",199 "additionalProperties": {200 "$ref": "#/definitions/parameter"201 },202 "description": "One or more JSON representations for parameters"203 },204 "responseDefinitions": {205 "type": "object",206 "additionalProperties": {207 "$ref": "#/definitions/response"208 },209 "description": "One or more JSON representations for parameters"210 },211 "externalDocs": {212 "type": "object",213 "additionalProperties": false,214 "description": "information about external documentation",215 "required": [216 "url"217 ],218 "properties": {219 "description": {220 "type": "string"221 },222 "url": {223 "type": "string",224 "format": "uri"225 }226 },227 "patternProperties": {228 "^x-": {229 "$ref": "#/definitions/vendorExtension"230 }231 }232 },233 "examples": {234 "type": "object",235 "additionalProperties": true236 },237 "mimeType": {238 "type": "string",239 "description": "The MIME type of the HTTP message."240 },241 "operation": {242 "type": "object",243 "required": [244 "responses"245 ],246 "additionalProperties": false,247 "patternProperties": {248 "^x-": {249 "$ref": "#/definitions/vendorExtension"250 }251 },252 "properties": {253 "tags": {254 "type": "array",255 "items": {256 "type": "string"257 },258 "uniqueItems": true259 },260 "summary": {261 "type": "string",262 "description": "A brief summary of the operation."263 },264 "description": {265 "type": "string",266 "description": "A longer description of the operation, GitHub Flavored Markdown is allowed."267 },268 "externalDocs": {269 "$ref": "#/definitions/externalDocs"270 },271 "operationId": {272 "type": "string",273 "description": "A unique identifier of the operation."274 },275 "produces": {276 "description": "A list of MIME types the API can produce.",277 "allOf": [278 {279 "$ref": "#/definitions/mediaTypeList"280 }281 ]282 },283 "consumes": {284 "description": "A list of MIME types the API can consume.",285 "allOf": [286 {287 "$ref": "#/definitions/mediaTypeList"288 }289 ]290 },291 "parameters": {292 "$ref": "#/definitions/parametersList"293 },294 "responses": {295 "$ref": "#/definitions/responses"296 },297 "schemes": {298 "$ref": "#/definitions/schemesList"299 },300 "deprecated": {301 "type": "boolean",302 "default": false303 },304 "security": {305 "$ref": "#/definitions/security"306 }307 }308 },309 "pathItem": {310 "type": "object",311 "additionalProperties": false,312 "patternProperties": {313 "^x-": {314 "$ref": "#/definitions/vendorExtension"315 }316 },317 "properties": {318 "$ref": {319 "type": "string"320 },321 "get": {322 "$ref": "#/definitions/operation"323 },324 "put": {325 "$ref": "#/definitions/operation"326 },327 "post": {328 "$ref": "#/definitions/operation"329 },330 "delete": {331 "$ref": "#/definitions/operation"332 },333 "options": {334 "$ref": "#/definitions/operation"335 },336 "head": {337 "$ref": "#/definitions/operation"338 },339 "patch": {340 "$ref": "#/definitions/operation"341 },342 "parameters": {343 "$ref": "#/definitions/parametersList"344 }345 }346 },347 "responses": {348 "type": "object",349 "description": "Response objects names can either be any valid HTTP status code or 'default'.",350 "minProperties": 1,351 "additionalProperties": false,352 "patternProperties": {353 "^([0-9]{3})$|^(default)$": {354 "$ref": "#/definitions/responseValue"355 },356 "^x-": {357 "$ref": "#/definitions/vendorExtension"358 }359 },360 "not": {361 "type": "object",362 "additionalProperties": false,363 "patternProperties": {364 "^x-": {365 "$ref": "#/definitions/vendorExtension"366 }367 }368 }369 },370 "responseValue": {371 "oneOf": [372 {373 "$ref": "#/definitions/response"374 },375 {376 "$ref": "#/definitions/jsonReference"377 }378 ]379 },380 "response": {381 "type": "object",382 "required": [383 "description"384 ],385 "properties": {386 "description": {387 "type": "string"388 },389 "schema": {390 "oneOf": [391 {392 "$ref": "#/definitions/schema"393 },394 {395 "$ref": "#/definitions/fileSchema"396 }397 ]398 },399 "headers": {400 "$ref": "#/definitions/headers"401 },402 "examples": {403 "$ref": "#/definitions/examples"404 }405 },406 "additionalProperties": false,407 "patternProperties": {408 "^x-": {409 "$ref": "#/definitions/vendorExtension"410 }411 }412 },413 "headers": {414 "type": "object",415 "additionalProperties": {416 "$ref": "#/definitions/header"417 }418 },419 "header": {420 "type": "object",421 "additionalProperties": false,422 "required": [423 "type"424 ],425 "properties": {426 "type": {427 "type": "string",428 "enum": [429 "string",430 "number",431 "integer",432 "boolean",433 "array"434 ]435 },436 "format": {437 "type": "string"438 },439 "items": {440 "$ref": "#/definitions/primitivesItems"441 },442 "collectionFormat": {443 "$ref": "#/definitions/collectionFormat"444 },445 "default": {446 "$ref": "#/definitions/default"447 },448 "maximum": {449 "$ref": "#/definitions/maximum"450 },451 "exclusiveMaximum": {452 "$ref": "#/definitions/exclusiveMaximum"453 },454 "minimum": {455 "$ref": "#/definitions/minimum"456 },457 "exclusiveMinimum": {458 "$ref": "#/definitions/exclusiveMinimum"459 },460 "maxLength": {461 "$ref": "#/definitions/maxLength"462 },463 "minLength": {464 "$ref": "#/definitions/minLength"465 },466 "pattern": {467 "$ref": "#/definitions/pattern"468 },469 "maxItems": {470 "$ref": "#/definitions/maxItems"471 },472 "minItems": {473 "$ref": "#/definitions/minItems"474 },475 "uniqueItems": {476 "$ref": "#/definitions/uniqueItems"477 },478 "enum": {479 "$ref": "#/definitions/enum"480 },481 "multipleOf": {482 "$ref": "#/definitions/multipleOf"483 },484 "description": {485 "type": "string"486 }487 },488 "patternProperties": {489 "^x-": {490 "$ref": "#/definitions/vendorExtension"491 }492 }493 },494 "vendorExtension": {495 "description": "Any property starting with x- is valid.",496 "additionalProperties": true,497 "additionalItems": true498 },499 "bodyParameter": {500 "type": "object",501 "required": [502 "name",503 "in",504 "schema"505 ],506 "patternProperties": {507 "^x-": {508 "$ref": "#/definitions/vendorExtension"509 }510 },511 "properties": {512 "description": {513 "type": "string",514 "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."515 },516 "name": {517 "type": "string",518 "description": "The name of the parameter."519 },520 "in": {521 "type": "string",522 "description": "Determines the location of the parameter.",523 "enum": [524 "body"525 ]526 },527 "required": {528 "type": "boolean",529 "description": "Determines whether or not this parameter is required or optional.",530 "default": false531 },532 "schema": {533 "$ref": "#/definitions/schema"534 }535 },536 "additionalProperties": false537 },538 "headerParameterSubSchema": {539 "additionalProperties": false,540 "patternProperties": {541 "^x-": {542 "$ref": "#/definitions/vendorExtension"543 }544 },545 "properties": {546 "required": {547 "type": "boolean",548 "description": "Determines whether or not this parameter is required or optional.",549 "default": false550 },551 "in": {552 "type": "string",553 "description": "Determines the location of the parameter.",554 "enum": [555 "header"556 ]557 },558 "description": {559 "type": "string",560 "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."561 },562 "name": {563 "type": "string",564 "description": "The name of the parameter."565 },566 "type": {567 "type": "string",568 "enum": [569 "string",570 "number",571 "boolean",572 "integer",573 "array"574 ]575 },576 "format": {577 "type": "string"578 },579 "items": {580 "$ref": "#/definitions/primitivesItems"581 },582 "collectionFormat": {583 "$ref": "#/definitions/collectionFormat"584 },585 "default": {586 "$ref": "#/definitions/default"587 },588 "maximum": {589 "$ref": "#/definitions/maximum"590 },591 "exclusiveMaximum": {592 "$ref": "#/definitions/exclusiveMaximum"593 },594 "minimum": {595 "$ref": "#/definitions/minimum"596 },597 "exclusiveMinimum": {598 "$ref": "#/definitions/exclusiveMinimum"599 },600 "maxLength": {601 "$ref": "#/definitions/maxLength"602 },603 "minLength": {604 "$ref": "#/definitions/minLength"605 },606 "pattern": {607 "$ref": "#/definitions/pattern"608 },609 "maxItems": {610 "$ref": "#/definitions/maxItems"611 },612 "minItems": {613 "$ref": "#/definitions/minItems"614 },615 "uniqueItems": {616 "$ref": "#/definitions/uniqueItems"617 },618 "enum": {619 "$ref": "#/definitions/enum"620 },621 "multipleOf": {622 "$ref": "#/definitions/multipleOf"623 }624 }625 },626 "queryParameterSubSchema": {627 "additionalProperties": false,628 "patternProperties": {629 "^x-": {630 "$ref": "#/definitions/vendorExtension"631 }632 },633 "properties": {634 "required": {635 "type": "boolean",636 "description": "Determines whether or not this parameter is required or optional.",637 "default": false638 },639 "in": {640 "type": "string",641 "description": "Determines the location of the parameter.",642 "enum": [643 "query"644 ]645 },646 "description": {647 "type": "string",648 "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."649 },650 "name": {651 "type": "string",652 "description": "The name of the parameter."653 },654 "allowEmptyValue": {655 "type": "boolean",656 "default": false,657 "description": "allows sending a parameter by name only or with an empty value."658 },659 "type": {660 "type": "string",661 "enum": [662 "string",663 "number",664 "boolean",665 "integer",666 "array"667 ]668 },669 "format": {670 "type": "string"671 },672 "items": {673 "$ref": "#/definitions/primitivesItems"674 },675 "collectionFormat": {676 "$ref": "#/definitions/collectionFormatWithMulti"677 },678 "default": {679 "$ref": "#/definitions/default"680 },681 "maximum": {682 "$ref": "#/definitions/maximum"683 },684 "exclusiveMaximum": {685 "$ref": "#/definitions/exclusiveMaximum"686 },687 "minimum": {688 "$ref": "#/definitions/minimum"689 },690 "exclusiveMinimum": {691 "$ref": "#/definitions/exclusiveMinimum"692 },693 "maxLength": {694 "$ref": "#/definitions/maxLength"695 },696 "minLength": {697 "$ref": "#/definitions/minLength"698 },699 "pattern": {700 "$ref": "#/definitions/pattern"701 },702 "maxItems": {703 "$ref": "#/definitions/maxItems"704 },705 "minItems": {706 "$ref": "#/definitions/minItems"707 },708 "uniqueItems": {709 "$ref": "#/definitions/uniqueItems"710 },711 "enum": {712 "$ref": "#/definitions/enum"713 },714 "multipleOf": {715 "$ref": "#/definitions/multipleOf"716 }717 }718 },719 "formDataParameterSubSchema": {720 "additionalProperties": false,721 "patternProperties": {722 "^x-": {723 "$ref": "#/definitions/vendorExtension"724 }725 },726 "properties": {727 "required": {728 "type": "boolean",729 "description": "Determines whether or not this parameter is required or optional.",730 "default": false731 },732 "in": {733 "type": "string",734 "description": "Determines the location of the parameter.",735 "enum": [736 "formData"737 ]738 },739 "description": {740 "type": "string",741 "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."742 },743 "name": {744 "type": "string",745 "description": "The name of the parameter."746 },747 "allowEmptyValue": {748 "type": "boolean",749 "default": false,750 "description": "allows sending a parameter by name only or with an empty value."751 },752 "type": {753 "type": "string",754 "enum": [755 "string",756 "number",757 "boolean",758 "integer",759 "array",760 "file"761 ]762 },763 "format": {764 "type": "string"765 },766 "items": {767 "$ref": "#/definitions/primitivesItems"768 },769 "collectionFormat": {770 "$ref": "#/definitions/collectionFormatWithMulti"771 },772 "default": {773 "$ref": "#/definitions/default"774 },775 "maximum": {776 "$ref": "#/definitions/maximum"777 },778 "exclusiveMaximum": {779 "$ref": "#/definitions/exclusiveMaximum"780 },781 "minimum": {782 "$ref": "#/definitions/minimum"783 },784 "exclusiveMinimum": {785 "$ref": "#/definitions/exclusiveMinimum"786 },787 "maxLength": {788 "$ref": "#/definitions/maxLength"789 },790 "minLength": {791 "$ref": "#/definitions/minLength"792 },793 "pattern": {794 "$ref": "#/definitions/pattern"795 },796 "maxItems": {797 "$ref": "#/definitions/maxItems"798 },799 "minItems": {800 "$ref": "#/definitions/minItems"801 },802 "uniqueItems": {803 "$ref": "#/definitions/uniqueItems"804 },805 "enum": {806 "$ref": "#/definitions/enum"807 },808 "multipleOf": {809 "$ref": "#/definitions/multipleOf"810 }811 }812 },813 "pathParameterSubSchema": {814 "additionalProperties": false,815 "patternProperties": {816 "^x-": {817 "$ref": "#/definitions/vendorExtension"818 }819 },820 "required": [821 "required"822 ],823 "properties": {824 "required": {825 "type": "boolean",826 "enum": [827 true828 ],829 "description": "Determines whether or not this parameter is required or optional."830 },831 "in": {832 "type": "string",833 "description": "Determines the location of the parameter.",834 "enum": [835 "path"836 ]837 },838 "description": {839 "type": "string",840 "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."841 },842 "name": {843 "type": "string",844 "description": "The name of the parameter."845 },846 "type": {847 "type": "string",848 "enum": [849 "string",850 "number",851 "boolean",852 "integer",853 "array"854 ]855 },856 "format": {857 "type": "string"858 },859 "items": {860 "$ref": "#/definitions/primitivesItems"861 },862 "collectionFormat": {863 "$ref": "#/definitions/collectionFormat"864 },865 "default": {866 "$ref": "#/definitions/default"867 },868 "maximum": {869 "$ref": "#/definitions/maximum"870 },871 "exclusiveMaximum": {872 "$ref": "#/definitions/exclusiveMaximum"873 },874 "minimum": {875 "$ref": "#/definitions/minimum"876 },877 "exclusiveMinimum": {878 "$ref": "#/definitions/exclusiveMinimum"879 },880 "maxLength": {881 "$ref": "#/definitions/maxLength"882 },883 "minLength": {884 "$ref": "#/definitions/minLength"885 },886 "pattern": {887 "$ref": "#/definitions/pattern"888 },889 "maxItems": {890 "$ref": "#/definitions/maxItems"891 },892 "minItems": {893 "$ref": "#/definitions/minItems"894 },895 "uniqueItems": {896 "$ref": "#/definitions/uniqueItems"897 },898 "enum": {899 "$ref": "#/definitions/enum"900 },901 "multipleOf": {902 "$ref": "#/definitions/multipleOf"903 }904 }905 },906 "nonBodyParameter": {907 "type": "object",908 "required": [909 "name",910 "in",911 "type"912 ],913 "oneOf": [914 {915 "$ref": "#/definitions/headerParameterSubSchema"916 },917 {918 "$ref": "#/definitions/formDataParameterSubSchema"919 },920 {921 "$ref": "#/definitions/queryParameterSubSchema"922 },923 {924 "$ref": "#/definitions/pathParameterSubSchema"925 }926 ]927 },928 "parameter": {929 "oneOf": [930 {931 "$ref": "#/definitions/bodyParameter"932 },933 {934 "$ref": "#/definitions/nonBodyParameter"935 }936 ]937 },938 "schema": {939 "type": "object",940 "description": "A deterministic version of a JSON Schema object.",941 "patternProperties": {942 "^x-": {943 "$ref": "#/definitions/vendorExtension"944 }945 },946 "properties": {947 "$ref": {948 "type": "string"949 },950 "format": {951 "type": "string"952 },953 "title": {954 "$ref": "http://json-schema.org/draft-04/schema#/properties/title"955 },956 "description": {957 "$ref": "http://json-schema.org/draft-04/schema#/properties/description"958 },959 "default": {960 "$ref": "http://json-schema.org/draft-04/schema#/properties/default"961 },962 "multipleOf": {963 "$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"964 },965 "maximum": {966 "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"967 },968 "exclusiveMaximum": {969 "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"970 },971 "minimum": {972 "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"973 },974 "exclusiveMinimum": {975 "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"976 },977 "maxLength": {978 "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"979 },980 "minLength": {981 "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"982 },983 "pattern": {984 "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"985 },986 "maxItems": {987 "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"988 },989 "minItems": {990 "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"991 },992 "uniqueItems": {993 "$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"994 },995 "maxProperties": {996 "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"997 },998 "minProperties": {999 "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"1000 },1001 "required": {1002 "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"1003 },1004 "enum": {1005 "$ref": "http://json-schema.org/draft-04/schema#/properties/enum"1006 },1007 "additionalProperties": {1008 "anyOf": [1009 {1010 "$ref": "#/definitions/schema"1011 },1012 {1013 "type": "boolean"1014 }1015 ],1016 "default": {}1017 },1018 "type": {1019 "$ref": "http://json-schema.org/draft-04/schema#/properties/type"1020 },1021 "items": {1022 "anyOf": [1023 {1024 "$ref": "#/definitions/schema"1025 },1026 {1027 "type": "array",1028 "minItems": 1,1029 "items": {1030 "$ref": "#/definitions/schema"1031 }1032 }1033 ],1034 "default": {}1035 },1036 "allOf": {1037 "type": "array",1038 "minItems": 1,1039 "items": {1040 "$ref": "#/definitions/schema"1041 }1042 },1043 "properties": {1044 "type": "object",1045 "additionalProperties": {1046 "$ref": "#/definitions/schema"1047 },1048 "default": {}1049 },1050 "discriminator": {1051 "type": "string"1052 },1053 "readOnly": {1054 "type": "boolean",1055 "default": false1056 },1057 "xml": {1058 "$ref": "#/definitions/xml"1059 },1060 "externalDocs": {1061 "$ref": "#/definitions/externalDocs"1062 },1063 "example": {}1064 },1065 "additionalProperties": false1066 },1067 "fileSchema": {1068 "type": "object",1069 "description": "A deterministic version of a JSON Schema object.",1070 "patternProperties": {1071 "^x-": {1072 "$ref": "#/definitions/vendorExtension"1073 }1074 },1075 "required": [1076 "type"1077 ],1078 "properties": {1079 "format": {1080 "type": "string"1081 },1082 "title": {1083 "$ref": "http://json-schema.org/draft-04/schema#/properties/title"1084 },1085 "description": {1086 "$ref": "http://json-schema.org/draft-04/schema#/properties/description"1087 },1088 "default": {1089 "$ref": "http://json-schema.org/draft-04/schema#/properties/default"1090 },1091 "required": {1092 "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"1093 },1094 "type": {1095 "type": "string",1096 "enum": [1097 "file"1098 ]1099 },1100 "readOnly": {1101 "type": "boolean",1102 "default": false1103 },1104 "externalDocs": {1105 "$ref": "#/definitions/externalDocs"1106 },1107 "example": {}1108 },1109 "additionalProperties": false1110 },1111 "primitivesItems": {1112 "type": "object",1113 "additionalProperties": false,1114 "properties": {1115 "type": {1116 "type": "string",1117 "enum": [1118 "string",1119 "number",1120 "integer",1121 "boolean",1122 "array"1123 ]1124 },1125 "format": {1126 "type": "string"1127 },1128 "items": {1129 "$ref": "#/definitions/primitivesItems"1130 },1131 "collectionFormat": {1132 "$ref": "#/definitions/collectionFormat"1133 },1134 "default": {1135 "$ref": "#/definitions/default"1136 },1137 "maximum": {1138 "$ref": "#/definitions/maximum"1139 },1140 "exclusiveMaximum": {1141 "$ref": "#/definitions/exclusiveMaximum"1142 },1143 "minimum": {1144 "$ref": "#/definitions/minimum"1145 },1146 "exclusiveMinimum": {1147 "$ref": "#/definitions/exclusiveMinimum"1148 },1149 "maxLength": {1150 "$ref": "#/definitions/maxLength"1151 },1152 "minLength": {1153 "$ref": "#/definitions/minLength"1154 },1155 "pattern": {1156 "$ref": "#/definitions/pattern"1157 },1158 "maxItems": {1159 "$ref": "#/definitions/maxItems"1160 },1161 "minItems": {1162 "$ref": "#/definitions/minItems"1163 },1164 "uniqueItems": {1165 "$ref": "#/definitions/uniqueItems"1166 },1167 "enum": {1168 "$ref": "#/definitions/enum"1169 },1170 "multipleOf": {1171 "$ref": "#/definitions/multipleOf"1172 }1173 },1174 "patternProperties": {1175 "^x-": {1176 "$ref": "#/definitions/vendorExtension"1177 }1178 }1179 },1180 "security": {1181 "type": "array",1182 "items": {1183 "$ref": "#/definitions/securityRequirement"1184 },1185 "uniqueItems": true1186 },1187 "securityRequirement": {1188 "type": "object",1189 "additionalProperties": {1190 "type": "array",1191 "items": {1192 "type": "string"1193 },1194 "uniqueItems": true1195 }1196 },1197 "xml": {1198 "type": "object",1199 "additionalProperties": false,1200 "properties": {