[{"data":1,"prerenderedAt":1045},["ShallowReactive",2],{"libs":3,"navigation-openapi-writer":115,"\u002Fopenapi-writer\u002Fversions-and-output\u002Fconversions":256,"\u002Fopenapi-writer\u002Fversions-and-output\u002Fconversions-surround":1040},[4,45,69,95],{"id":5,"color":6,"compatibility":7,"extension":20,"icon":21,"links":22,"meta":27,"name":28,"order":29,"package":30,"related":31,"stem":34,"tagline":35,"__hash__":36,"slug":37,"repository":38,"branch":39,"path":40,"collection":41,"entry":42,"home":43,"version":44},"laravel_json_api_meta\u002Fdocs\u002Fsite\u002Flib.yml","violet",[8,13,16],{"version":9,"php":10,"laravel":11,"status":12},"3.x","^8.3","^12.46 || ^13.0","active",{"version":14,"php":10,"laravel":11,"status":15},"2.x","eol",{"version":17,"php":18,"laravel":19,"status":15},"1.x","^8.1","^10.0 || ^11.0 || ^12.0 || ^13.0","yml","i-lucide-braces",[23],{"label":24,"to":25,"icon":26},"JSON:API 1.1","https:\u002F\u002Fjsonapi.org\u002Fformat\u002F","i-lucide-book-marked",{},"Laravel JSON:API",10,"ark4ne\u002Flaravel-json-api",[32,33],"laravel-api-revisions","laravel-openapi-generator","docs\u002Fsite\u002Flib","JSON:API 1.1 resources for Laravel, with typed values, validated includes and fieldsets, and API revisions.","ILGoVp9rzKYDQc18VV8kkXy3EQOQ8rv87JblFKXYDrU","laravel-json-api","Ark4ne\u002Flaravel-json-api","master","docs\u002Fsite","laravel_json_api","\u002Flaravel-json-api\u002Fgetting-started\u002Fintroduction","\u002Flaravel-json-api","v3.0.0",{"id":46,"color":47,"compatibility":48,"extension":20,"icon":50,"links":51,"meta":56,"name":57,"order":58,"package":59,"related":60,"stem":34,"tagline":61,"__hash__":62,"slug":32,"repository":63,"branch":64,"path":40,"collection":65,"entry":66,"home":67,"version":68},"laravel_api_revisions_meta\u002Fdocs\u002Fsite\u002Flib.yml","amber",[49],{"version":17,"php":10,"laravel":11,"status":12},"i-lucide-git-branch",[52],{"label":53,"to":54,"icon":55},"Agent skill","https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-api-revisions\u002Ftree\u002Fmain\u002Fskills\u002Flaravel-api-revisions","i-lucide-bot",{},"Laravel API Revisions",20,"ark4ne\u002Flaravel-api-revisions",[37,33],"Typed schemas for Laravel resources and form requests, evolved through dated API revisions, Stripe-style.","w24MBVK4_XliIZ8nVcfnuT9OgR-m-Ytxz31Pxua_mLM","Ark4ne\u002Flaravel-api-revisions","main","laravel_api_revisions","\u002Flaravel-api-revisions\u002Fgetting-started\u002Fintroduction","\u002Flaravel-api-revisions","v1.0.0",{"id":70,"color":71,"compatibility":72,"extension":20,"icon":77,"links":78,"meta":82,"name":83,"order":84,"package":85,"related":86,"stem":34,"tagline":88,"__hash__":89,"slug":33,"repository":90,"branch":39,"path":40,"collection":91,"entry":92,"home":93,"version":94},"laravel_openapi_generator_meta\u002Fdocs\u002Fsite\u002Flib.yml","emerald",[73,75],{"version":17,"php":10,"laravel":74,"status":12},"^13.0",{"version":76,"php":18,"laravel":19,"status":15},"0.6","i-lucide-file-json",[79],{"label":80,"to":81,"icon":26},"OpenAPI Specification","https:\u002F\u002Fspec.openapis.org\u002Foas\u002Flatest.html",{},"Laravel OpenAPI Generator",30,"ark4ne\u002Flaravel-openapi-generator",[87,37,32],"openapi-writer","Generates OpenAPI 3.0, 3.1 and 3.2 documents from a Laravel application, its routes, form requests and resources.","DTt0SVqegMImLmWmwL8LCW5lxRCWFYcnBFOaquLpVwc","Ark4ne\u002Flaravel-openapi-generator","laravel_openapi_generator","\u002Flaravel-openapi-generator\u002Fgetting-started\u002Fintroduction","\u002Flaravel-openapi-generator","v1.2.0",{"id":96,"color":97,"compatibility":98,"extension":20,"icon":101,"links":102,"meta":104,"name":105,"order":106,"package":107,"related":108,"stem":34,"tagline":109,"__hash__":110,"slug":87,"repository":111,"branch":64,"path":40,"collection":112,"entry":113,"home":114,"version":68},"openapi_writer_meta\u002Fdocs\u002Fsite\u002Flib.yml","sky",[99],{"version":17,"php":100,"status":12},"^8.2","i-lucide-file-pen-line",[103],{"label":80,"to":81,"icon":26},{},"OpenAPI Writer",40,"ark4ne\u002Fopenapi-writer",[33],"Framework-agnostic, fluent and immutable PHP builder for OpenAPI 3.0, 3.1 and 3.2 documents, written as JSON or YAML and validated.","JFQcdQ9GEChOkfRKibLjoxZOfnt6HYNsayX2melOzMk","Ark4ne\u002Fopenapi-writer","openapi_writer","\u002Fopenapi-writer\u002Fgetting-started\u002Fintroduction","\u002Fopenapi-writer",[116,135,169,182,212,226,248],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Fopenapi-writer\u002Fgetting-started","openapi-writer\u002F1.getting-started",[124,127,131],{"title":125,"path":113,"stem":126,"since":118,"experimental":119},"Introduction","openapi-writer\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Fopenapi-writer\u002Fgetting-started\u002Finstallation","openapi-writer\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Fopenapi-writer\u002Fgetting-started\u002Fquick-start","openapi-writer\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Building documents","i-lucide-blocks","\u002Fopenapi-writer\u002Fbuilding-documents","openapi-writer\u002F2.building-documents",[141,145,149,153,157,161,165],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"The object model","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fthe-object-model","openapi-writer\u002F2.building-documents\u002F1.the-object-model",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Document","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fdocument","openapi-writer\u002F2.building-documents\u002F2.document",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Paths and operations","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fpaths-and-operations","openapi-writer\u002F2.building-documents\u002F3.paths-and-operations",{"title":154,"path":155,"stem":156,"since":118,"experimental":119},"Requests and responses","\u002Fopenapi-writer\u002Fbuilding-documents\u002Frequests-and-responses","openapi-writer\u002F2.building-documents\u002F4.requests-and-responses",{"title":158,"path":159,"stem":160,"since":118,"experimental":119},"Components and references","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fcomponents-and-references","openapi-writer\u002F2.building-documents\u002F5.components-and-references",{"title":162,"path":163,"stem":164,"since":118,"experimental":119},"Security","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fsecurity","openapi-writer\u002F2.building-documents\u002F6.security",{"title":166,"path":167,"stem":168,"since":118,"experimental":119},"Webhooks and callbacks","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fwebhooks-and-callbacks","openapi-writer\u002F2.building-documents\u002F7.webhooks-and-callbacks",{"title":170,"since":118,"experimental":119,"icon":21,"path":171,"stem":172,"children":173,"page":119},"Schemas","\u002Fopenapi-writer\u002Fschemas","openapi-writer\u002F3.schemas",[174,178],{"title":175,"path":176,"stem":177,"since":118,"experimental":119},"Types and constraints","\u002Fopenapi-writer\u002Fschemas\u002Ftypes-and-constraints","openapi-writer\u002F3.schemas\u002F1.types-and-constraints",{"title":179,"path":180,"stem":181,"since":118,"experimental":119},"Composition and polymorphism","\u002Fopenapi-writer\u002Fschemas\u002Fcomposition-and-polymorphism","openapi-writer\u002F3.schemas\u002F2.composition-and-polymorphism",{"title":183,"since":118,"experimental":119,"icon":184,"path":185,"stem":186,"children":187,"page":119},"Versions and output","i-lucide-layers","\u002Fopenapi-writer\u002Fversions-and-output","openapi-writer\u002F4.versions-and-output",[188,192,196,200,204,208],{"title":189,"path":190,"stem":191,"since":118,"experimental":119},"Writing a document","\u002Fopenapi-writer\u002Fversions-and-output\u002Fwriting-a-document","openapi-writer\u002F4.versions-and-output\u002F1.writing-a-document",{"title":193,"path":194,"stem":195,"since":118,"experimental":119},"Choosing a version","\u002Fopenapi-writer\u002Fversions-and-output\u002Fchoosing-a-version","openapi-writer\u002F4.versions-and-output\u002F2.choosing-a-version",{"title":197,"path":198,"stem":199,"since":118,"experimental":119},"Conversions","\u002Fopenapi-writer\u002Fversions-and-output\u002Fconversions","openapi-writer\u002F4.versions-and-output\u002F3.conversions",{"title":201,"path":202,"stem":203,"since":118,"experimental":119},"Strict and lenient","\u002Fopenapi-writer\u002Fversions-and-output\u002Fstrict-and-lenient","openapi-writer\u002F4.versions-and-output\u002F4.strict-and-lenient",{"title":205,"path":206,"stem":207,"since":118,"experimental":119},"OpenAPI 3.2","\u002Fopenapi-writer\u002Fversions-and-output\u002Fopenapi-3-2","openapi-writer\u002F4.versions-and-output\u002F5.openapi-3-2",{"title":209,"path":210,"stem":211,"since":118,"experimental":119},"Redoc extensions","\u002Fopenapi-writer\u002Fversions-and-output\u002Fredoc-extensions","openapi-writer\u002F4.versions-and-output\u002F6.redoc-extensions",{"title":213,"since":118,"experimental":119,"icon":214,"path":215,"stem":216,"children":217,"page":119},"Validation","i-lucide-badge-check","\u002Fopenapi-writer\u002Fvalidation","openapi-writer\u002F5.validation",[218,222],{"title":219,"path":220,"stem":221,"since":118,"experimental":119},"Validating a document","\u002Fopenapi-writer\u002Fvalidation\u002Fvalidating-a-document","openapi-writer\u002F5.validation\u002F1.validating-a-document",{"title":223,"path":224,"stem":225,"since":118,"experimental":119},"Custom rules","\u002Fopenapi-writer\u002Fvalidation\u002Fcustom-rules","openapi-writer\u002F5.validation\u002F2.custom-rules",{"title":227,"since":118,"experimental":119,"icon":228,"path":229,"stem":230,"children":231,"page":119},"Reference","i-lucide-library","\u002Fopenapi-writer\u002Freference","openapi-writer\u002F6.reference",[232,236,240,244],{"title":233,"path":234,"stem":235,"since":118,"experimental":119},"Objects","\u002Fopenapi-writer\u002Freference\u002Fobjects","openapi-writer\u002F6.reference\u002F1.objects",{"title":237,"path":238,"stem":239,"since":118,"experimental":119},"Enums","\u002Fopenapi-writer\u002Freference\u002Fenums","openapi-writer\u002F6.reference\u002F2.enums",{"title":241,"path":242,"stem":243,"since":118,"experimental":119},"Validation rules","\u002Fopenapi-writer\u002Freference\u002Fvalidation-rules","openapi-writer\u002F6.reference\u002F3.validation-rules",{"title":245,"path":246,"stem":247,"since":118,"experimental":119},"Exceptions","\u002Fopenapi-writer\u002Freference\u002Fexceptions","openapi-writer\u002F6.reference\u002F4.exceptions",{"title":249,"path":250,"children":251},"Releases","\u002Fopenapi-writer\u002Freleases",[252],{"title":253,"path":254,"stem":255,"since":118,"experimental":119},"Changelog","\u002Fopenapi-writer\u002Fchangelog","openapi-writer\u002FCHANGELOG",{"id":257,"title":197,"body":258,"description":1034,"experimental":119,"extension":1035,"links":118,"meta":1036,"navigation":688,"path":198,"rawbody":1037,"seo":1038,"since":118,"stem":199,"__hash__":1039},"openapi_writer\u002Fopenapi-writer\u002F4.versions-and-output\u002F3.conversions.md",{"type":259,"value":260,"toc":1029},"minimark",[261,265,270,284,491,494,516,749,753,760,891,902,906,1020,1025],[262,263,264],"p",{},"This page lists every difference between versions that the library handles: the ones it converts, and the features\nthat do not exist in older versions.",[266,267,269],"h2",{"id":268},"converted-for-openapi-30","Converted for OpenAPI 3.0",[262,271,272,273,277,278,283],{},"Written in another form for 3.0, and reported as ",[274,275,276],"code",{},"converted"," ",[279,280,282],"a",{"href":281},"\u002Fopenapi-writer\u002Fversions-and-output\u002Fstrict-and-lenient#diagnostics","diagnostics",",\nnever as an error.",[285,286,287,303],"table",{},[288,289,290],"thead",{},[291,292,293,297,300],"tr",{},[294,295,296],"th",{},"Model",[294,298,299],{},"3.1 and 3.2",[294,301,302],{},"3.0",[304,305,306,324,341,359,376,394,411,430,447,464],"tbody",{},[291,307,308,314,319],{},[309,310,311],"td",{},[274,312,313],{},"Schema::string()->nullable()",[309,315,316],{},[274,317,318],{},"type: [string, \"null\"]",[309,320,321],{},[274,322,323],{},"type: string, nullable: true",[291,325,326,331,336],{},[309,327,328],{},[274,329,330],{},"Schema::ref('User')->nullable()",[309,332,333],{},[274,334,335],{},"anyOf: [{$ref}, {type: \"null\"}]",[309,337,338],{},[274,339,340],{},"anyOf: [{$ref}, {enum: [null], type: object, nullable: true}]",[291,342,343,348,353],{},[309,344,345],{},[274,346,347],{},"exclusiveMinimum(0)",[309,349,350],{},[274,351,352],{},"exclusiveMinimum: 0",[309,354,355,358],{},[274,356,357],{},"minimum: 0, exclusiveMinimum: true"," (same for maximum)",[291,360,361,366,371],{},[309,362,363],{},[274,364,365],{},"const('admin')",[309,367,368],{},[274,369,370],{},"const: admin",[309,372,373],{},[274,374,375],{},"enum: [admin]",[291,377,378,384,389],{},[309,379,380,383],{},[274,381,382],{},"examples(9.99, 20)"," on a schema",[309,385,386],{},[274,387,388],{},"examples: [9.99, 20]",[309,390,391],{},[274,392,393],{},"example: 9.99",[291,395,396,401,406],{},[309,397,398],{},[274,399,400],{},"type('string', 'integer')",[309,402,403],{},[274,404,405],{},"type: [string, integer]",[309,407,408],{},[274,409,410],{},"anyOf: [{type: string}, {type: integer}]",[291,412,413,418,424],{},[309,414,415],{},[274,416,417],{},"Schema::ref('User')->description('…')",[309,419,420,423],{},[274,421,422],{},"$ref"," with its siblings",[309,425,426,429],{},[274,427,428],{},"allOf: [{$ref}]"," with the siblings",[291,431,432,437,442],{},[309,433,434],{},[274,435,436],{},"contentMediaType('image\u002Fpng')",[309,438,439],{},[274,440,441],{},"contentMediaType: image\u002Fpng",[309,443,444],{},[274,445,446],{},"format: binary",[291,448,449,454,459],{},[309,450,451],{},[274,452,453],{},"contentEncoding('base64')",[309,455,456],{},[274,457,458],{},"contentEncoding: base64",[309,460,461],{},[274,462,463],{},"format: byte",[291,465,466,475,483],{},[309,467,468,471,472],{},[274,469,470],{},"items(true)",", ",[274,473,474],{},"items(false)",[309,476,477,471,480],{},[274,478,479],{},"true",[274,481,482],{},"false",[309,484,485,471,488],{},[274,486,487],{},"{}",[274,489,490],{},"{not: {}}",[262,492,493],{},"Two more apply to every version:",[495,496,497,505],"ul",{},[498,499,500,501,504],"li",{},"A response without description is written with ",[274,502,503],{},"description: \"\"",", the field being required.",[498,506,507,508,511,512,515],{},"A document without ",[274,509,510],{},"paths"," is written with ",[274,513,514],{},"paths: {}"," for 3.0, where the field is required.",[517,518,521,612],"example",{"input":519,"output":520},"Schema","3.1.2 \u002F 3.0.4",[522,523,525],"template",{"v-slot:input":524},"",[526,527,531],"pre",{"className":528,"code":529,"language":530,"meta":524,"style":524},"language-php shiki shiki-themes material-theme-lighter github-light github-dark","Schema::number('price')\n    ->exclusiveMinimum(0)\n    ->examples(9.99, 20);\n","php",[274,532,533,566,583],{"__ignoreMap":524},[534,535,538,541,545,549,553,557,561,563],"span",{"class":536,"line":537},"line",1,[534,539,519],{"class":540},"sZMiF",[534,542,544],{"class":543},"smGrS","::",[534,546,548],{"class":547},"sGLFI","number",[534,550,552],{"class":551},"sP7_E","(",[534,554,556],{"class":555},"sjJ54","'",[534,558,560],{"class":559},"s_sjI","price",[534,562,556],{"class":555},[534,564,565],{"class":551},")\n",[534,567,569,572,575,577,581],{"class":536,"line":568},2,[534,570,571],{"class":543},"    ->",[534,573,574],{"class":547},"exclusiveMinimum",[534,576,552],{"class":551},[534,578,580],{"class":579},"srdBf","0",[534,582,565],{"class":551},[534,584,586,588,591,593,596,600,603,606,609],{"class":536,"line":585},3,[534,587,571],{"class":543},[534,589,590],{"class":547},"examples",[534,592,552],{"class":551},[534,594,595],{"class":579},"9",[534,597,599],{"class":598},"s39Yj",".",[534,601,602],{"class":579},"99",[534,604,605],{"class":551},",",[534,607,608],{"class":579}," 20",[534,610,611],{"class":551},");\n",[522,613,614],{"v-slot:output":524},[526,615,619],{"className":616,"code":617,"language":618,"meta":524,"style":524},"language-json shiki shiki-themes material-theme-lighter github-light github-dark","{ \"type\": \"number\", \"exclusiveMinimum\": 0, \"examples\": [9.99, 20] }\n\n{ \"type\": \"number\", \"minimum\": 0, \"exclusiveMinimum\": true, \"example\": 9.99 }\n","json",[274,620,621,684,690],{"__ignoreMap":524},[534,622,623,626,629,633,636,639,641,643,645,647,649,651,653,655,658,660,662,664,666,668,671,674,676,678,681],{"class":536,"line":537},[534,624,625],{"class":551},"{",[534,627,628],{"class":598}," \"",[534,630,632],{"class":631},"sseR_","type",[534,634,635],{"class":598},"\"",[534,637,638],{"class":551},":",[534,640,628],{"class":555},[534,642,548],{"class":559},[534,644,635],{"class":555},[534,646,605],{"class":551},[534,648,628],{"class":598},[534,650,574],{"class":631},[534,652,635],{"class":598},[534,654,638],{"class":551},[534,656,657],{"class":579}," 0",[534,659,605],{"class":551},[534,661,628],{"class":598},[534,663,590],{"class":631},[534,665,635],{"class":598},[534,667,638],{"class":551},[534,669,670],{"class":551}," [",[534,672,673],{"class":579},"9.99",[534,675,605],{"class":551},[534,677,608],{"class":579},[534,679,680],{"class":551},"]",[534,682,683],{"class":551}," }\n",[534,685,686],{"class":536,"line":568},[534,687,689],{"emptyLinePlaceholder":688},true,"\n",[534,691,692,694,696,698,700,702,704,706,708,710,712,715,717,719,721,723,725,727,729,731,734,736,738,740,742,744,747],{"class":536,"line":585},[534,693,625],{"class":551},[534,695,628],{"class":598},[534,697,632],{"class":631},[534,699,635],{"class":598},[534,701,638],{"class":551},[534,703,628],{"class":555},[534,705,548],{"class":559},[534,707,635],{"class":555},[534,709,605],{"class":551},[534,711,628],{"class":598},[534,713,714],{"class":631},"minimum",[534,716,635],{"class":598},[534,718,638],{"class":551},[534,720,657],{"class":579},[534,722,605],{"class":551},[534,724,628],{"class":598},[534,726,574],{"class":631},[534,728,635],{"class":598},[534,730,638],{"class":551},[534,732,733],{"class":598}," true",[534,735,605],{"class":551},[534,737,628],{"class":598},[534,739,517],{"class":631},[534,741,635],{"class":598},[534,743,638],{"class":551},[534,745,746],{"class":579}," 9.99",[534,748,683],{"class":551},[266,750,752],{"id":751},"not-available-before-31","Not available before 3.1",[262,754,755,756,759],{},"Below 3.1, these throw an ",[274,757,758],{},"UnsupportedFeatureException"," in strict mode, and are dropped in lenient mode:",[495,761,762,774,782,791,797,864],{},[498,763,764,471,767,471,770,773],{},[274,765,766],{},"OpenApi::webhooks()",[274,768,769],{},"OpenApi::jsonSchemaDialect()",[274,771,772],{},"Components::pathItems()",";",[498,775,776,471,779,773],{},[274,777,778],{},"Info::summary()",[274,780,781],{},"License::identifier()",[498,783,784,787,788,773],{},[274,785,786],{},"Reference::summary()"," and ",[274,789,790],{},"Reference::description()",[498,792,793,796],{},[274,794,795],{},"SecurityScheme::mutualTLS()",", and scopes on a non-OAuth2 security requirement;",[498,798,799,800,471,803,471,806,471,809,471,812,471,815,471,818,821,822,471,825,471,828,471,831,471,834,471,837,821,840,471,843,471,846,471,849,471,852,471,855,821,858,471,861,773],{},"the schema keywords ",[274,801,802],{},"$schema",[274,804,805],{},"$id",[274,807,808],{},"$anchor",[274,810,811],{},"$dynamicAnchor",[274,813,814],{},"$dynamicRef",[274,816,817],{},"$defs",[274,819,820],{},"$comment",",\n",[274,823,824],{},"contentSchema",[274,826,827],{},"prefixItems",[274,829,830],{},"contains",[274,832,833],{},"minContains",[274,835,836],{},"maxContains",[274,838,839],{},"unevaluatedItems",[274,841,842],{},"patternProperties",[274,844,845],{},"propertyNames",[274,847,848],{},"unevaluatedProperties",[274,850,851],{},"dependentRequired",[274,853,854],{},"dependentSchemas",[274,856,857],{},"if",[274,859,860],{},"then",[274,862,863],{},"else",[498,865,866,867,870,871,874,875,878,879,882,883,886,887,890],{},"a ",[274,868,869],{},"contentEncoding"," other than ",[274,872,873],{},"base64"," (such as ",[274,876,877],{},"base64url","), a ",[274,880,881],{},"contentMediaType"," with an encoding other than\nbase64, a ",[274,884,885],{},"const"," outside the ",[274,888,889],{},"enum"," of its schema.",[262,892,893,894,897,898,901],{},"Extensions starting with ",[274,895,896],{},"x-oai-"," or ",[274,899,900],{},"x-oas-"," are reserved from 3.1, and rejected there.",[266,903,905],{"id":904},"not-available-before-32","Not available before 3.2",[495,907,908,919,924,935,945,956,983,991,999,1007,1015],{},[498,909,910,471,913,787,916,773],{},[274,911,912],{},"OpenApi::self()",[274,914,915],{},"Components::mediaTypes()",[274,917,918],{},"MediaType::ref()",[498,920,921,773],{},[274,922,923],{},"Server::name()",[498,925,926,787,929,471,932,773],{},[274,927,928],{},"Operation::query()",[274,930,931],{},"PathItem::query()",[274,933,934],{},"PathItem::additionalOperations()",[498,936,937,940,941,944],{},[274,938,939],{},"Parameter::querystring()",", and the ",[274,942,943],{},"cookie"," style;",[498,946,947,471,950,787,953,773],{},[274,948,949],{},"Tag::summary()",[274,951,952],{},"parent()",[274,954,955],{},"kind()",[498,957,958,471,961,471,964,787,967,940,970,821,973,787,976,979,980,773],{},[274,959,960],{},"MediaType::description()",[274,962,963],{},"itemSchema()",[274,965,966],{},"prefixEncoding()",[274,968,969],{},"itemEncoding()",[274,971,972],{},"encoding",[274,974,975],{},"prefixEncoding",[274,977,978],{},"itemEncoding"," of an ",[274,981,982],{},"Encoding",[498,984,985,787,988,773],{},[274,986,987],{},"Example::dataValue()",[274,989,990],{},"serializedValue()",[498,992,993,471,996,773],{},[274,994,995],{},"Discriminator::defaultMapping()",[274,997,998],{},"Xml::nodeType()",[498,1000,1001,471,1004,773],{},[274,1002,1003],{},"OAuthFlows::deviceAuthorization()",[274,1005,1006],{},"OAuthFlow::deviceAuthorizationUrl()",[498,1008,1009,787,1012,773],{},[274,1010,1011],{},"SecurityScheme::oauth2MetadataUrl()",[274,1013,1014],{},"deprecated()",[498,1016,1017,599],{},[274,1018,1019],{},"Response::summary()",[262,1021,1022,1023,599],{},"Webhooks and tag parents can be kept for Redoc in older versions; see\n",[279,1024,209],{"href":210},[1026,1027,1028],"style",{},"html pre.shiki code .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sGLFI, html code.shiki .sGLFI{--shiki-light:#6182B8;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .s39Yj, html code.shiki .s39Yj{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sseR_, html code.shiki .sseR_{--shiki-light:#9C3EDA;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":524,"searchDepth":585,"depth":585,"links":1030},[1031,1032,1033],{"id":268,"depth":568,"text":269},{"id":751,"depth":568,"text":752},{"id":904,"depth":568,"text":905},"What the library rewrites for OpenAPI 3.0, and what each version cannot express.","md",{},"---\ntitle: Conversions\ndescription: What the library rewrites for OpenAPI 3.0, and what each version cannot express.\n---\n\nThis page lists every difference between versions that the library handles: the ones it converts, and the features\nthat do not exist in older versions.\n\n## Converted for OpenAPI 3.0\n\nWritten in another form for 3.0, and reported as `converted` [diagnostics](\u002Fopenapi-writer\u002Fversions-and-output\u002Fstrict-and-lenient#diagnostics),\nnever as an error.\n\n| Model | 3.1 and 3.2 | 3.0 |\n| --- | --- | --- |\n| `Schema::string()->nullable()` | `type: [string, \"null\"]` | `type: string, nullable: true` |\n| `Schema::ref('User')->nullable()` | `anyOf: [{$ref}, {type: \"null\"}]` | `anyOf: [{$ref}, {enum: [null], type: object, nullable: true}]` |\n| `exclusiveMinimum(0)` | `exclusiveMinimum: 0` | `minimum: 0, exclusiveMinimum: true` (same for maximum) |\n| `const('admin')` | `const: admin` | `enum: [admin]` |\n| `examples(9.99, 20)` on a schema | `examples: [9.99, 20]` | `example: 9.99` |\n| `type('string', 'integer')` | `type: [string, integer]` | `anyOf: [{type: string}, {type: integer}]` |\n| `Schema::ref('User')->description('…')` | `$ref` with its siblings | `allOf: [{$ref}]` with the siblings |\n| `contentMediaType('image\u002Fpng')` | `contentMediaType: image\u002Fpng` | `format: binary` |\n| `contentEncoding('base64')` | `contentEncoding: base64` | `format: byte` |\n| `items(true)`, `items(false)` | `true`, `false` | `{}`, `{not: {}}` |\n\nTwo more apply to every version:\n\n- A response without description is written with `description: \"\"`, the field being required.\n- A document without `paths` is written with `paths: {}` for 3.0, where the field is required.\n\n::example{input=\"Schema\" output=\"3.1.2 \u002F 3.0.4\"}\n#input\n```php\nSchema::number('price')\n    ->exclusiveMinimum(0)\n    ->examples(9.99, 20);\n```\n#output\n```json\n{ \"type\": \"number\", \"exclusiveMinimum\": 0, \"examples\": [9.99, 20] }\n\n{ \"type\": \"number\", \"minimum\": 0, \"exclusiveMinimum\": true, \"example\": 9.99 }\n```\n::\n\n## Not available before 3.1\n\nBelow 3.1, these throw an `UnsupportedFeatureException` in strict mode, and are dropped in lenient mode:\n\n- `OpenApi::webhooks()`, `OpenApi::jsonSchemaDialect()`, `Components::pathItems()`;\n- `Info::summary()`, `License::identifier()`;\n- `Reference::summary()` and `Reference::description()`;\n- `SecurityScheme::mutualTLS()`, and scopes on a non-OAuth2 security requirement;\n- the schema keywords `$schema`, `$id`, `$anchor`, `$dynamicAnchor`, `$dynamicRef`, `$defs`, `$comment`,\n  `contentSchema`, `prefixItems`, `contains`, `minContains`, `maxContains`, `unevaluatedItems`,\n  `patternProperties`, `propertyNames`, `unevaluatedProperties`, `dependentRequired`, `dependentSchemas`, `if`,\n  `then`, `else`;\n- a `contentEncoding` other than `base64` (such as `base64url`), a `contentMediaType` with an encoding other than\n  base64, a `const` outside the `enum` of its schema.\n\nExtensions starting with `x-oai-` or `x-oas-` are reserved from 3.1, and rejected there.\n\n## Not available before 3.2\n\n- `OpenApi::self()`, `Components::mediaTypes()` and `MediaType::ref()`;\n- `Server::name()`;\n- `Operation::query()` and `PathItem::query()`, `PathItem::additionalOperations()`;\n- `Parameter::querystring()`, and the `cookie` style;\n- `Tag::summary()`, `parent()` and `kind()`;\n- `MediaType::description()`, `itemSchema()`, `prefixEncoding()` and `itemEncoding()`, and the `encoding`,\n  `prefixEncoding` and `itemEncoding` of an `Encoding`;\n- `Example::dataValue()` and `serializedValue()`;\n- `Discriminator::defaultMapping()`, `Xml::nodeType()`;\n- `OAuthFlows::deviceAuthorization()`, `OAuthFlow::deviceAuthorizationUrl()`;\n- `SecurityScheme::oauth2MetadataUrl()` and `deprecated()`;\n- `Response::summary()`.\n\nWebhooks and tag parents can be kept for Redoc in older versions; see\n[Redoc extensions](\u002Fopenapi-writer\u002Fversions-and-output\u002Fredoc-extensions).\n",{"title":197,"description":1034},"Ra51f4ioV_1JFtF8eaD_VxForteV7HKARFNH33u8X5k",[1041,1043],{"title":193,"path":194,"stem":195,"description":1042,"children":-1},"One model for every OpenAPI version - how the target version is chosen and what happens when writing.",{"title":201,"path":202,"stem":203,"description":1044,"children":-1},"Fail on what the target version cannot express, or drop it and read the diagnostics.",1795438899227]