[{"data":1,"prerenderedAt":2065},["ShallowReactive",2],{"libs":3,"navigation-laravel-openapi-generator":115,"\u002Flaravel-openapi-generator\u002Fupgrade":296,"\u002Flaravel-openapi-generator\u002Fupgrade-surround":2062},[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,191,213,243,258,284],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Flaravel-openapi-generator\u002Fgetting-started","laravel-openapi-generator\u002F1.getting-started",[124,127,131],{"title":125,"path":92,"stem":126,"since":118,"experimental":119},"Introduction","laravel-openapi-generator\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Flaravel-openapi-generator\u002Fgetting-started\u002Finstallation","laravel-openapi-generator\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Flaravel-openapi-generator\u002Fgetting-started\u002Fquick-start","laravel-openapi-generator\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Documenting endpoints","i-lucide-route","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints","laravel-openapi-generator\u002F2.documenting-endpoints",[141,145,149,153,157,161,165],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"How it works","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints\u002Fhow-it-works","laravel-openapi-generator\u002F2.documenting-endpoints\u002F1.how-it-works",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Routes & operations","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints\u002Froutes-and-operations","laravel-openapi-generator\u002F2.documenting-endpoints\u002F2.routes-and-operations",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Requests","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints\u002Frequests","laravel-openapi-generator\u002F2.documenting-endpoints\u002F3.requests",{"title":154,"path":155,"stem":156,"since":118,"experimental":119},"Responses","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints\u002Fresponses","laravel-openapi-generator\u002F2.documenting-endpoints\u002F4.responses",{"title":158,"path":159,"stem":160,"since":118,"experimental":119},"Sampling","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints\u002Fsampling","laravel-openapi-generator\u002F2.documenting-endpoints\u002F5.sampling",{"title":162,"path":163,"stem":164,"since":118,"experimental":119},"Security & errors","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints\u002Fsecurity-and-errors","laravel-openapi-generator\u002F2.documenting-endpoints\u002F6.security-and-errors",{"title":166,"path":167,"stem":168,"since":118,"experimental":119},"Webhooks & callbacks","\u002Flaravel-openapi-generator\u002Fdocumenting-endpoints\u002Fwebhooks-and-callbacks","laravel-openapi-generator\u002F2.documenting-endpoints\u002F7.webhooks-and-callbacks",{"title":170,"since":118,"experimental":119,"icon":171,"path":172,"stem":173,"children":174,"page":119},"Documents","i-lucide-files","\u002Flaravel-openapi-generator\u002Fdocuments","laravel-openapi-generator\u002F3.documents",[175,179,183,187],{"title":176,"path":177,"stem":178,"since":118,"experimental":119},"Configuring a document","\u002Flaravel-openapi-generator\u002Fdocuments\u002Fconfiguring-a-document","laravel-openapi-generator\u002F3.documents\u002F1.configuring-a-document",{"title":180,"path":181,"stem":182,"since":118,"experimental":119},"Several documents","\u002Flaravel-openapi-generator\u002Fdocuments\u002Fseveral-documents","laravel-openapi-generator\u002F3.documents\u002F2.several-documents",{"title":184,"path":185,"stem":186,"since":118,"experimental":119},"Output","\u002Flaravel-openapi-generator\u002Fdocuments\u002Foutput","laravel-openapi-generator\u002F3.documents\u002F3.output",{"title":188,"path":189,"stem":190,"since":118,"experimental":119},"Translations","\u002Flaravel-openapi-generator\u002Fdocuments\u002Ftranslations","laravel-openapi-generator\u002F3.documents\u002F4.translations",{"title":192,"since":118,"experimental":119,"icon":193,"path":194,"stem":195,"children":196,"page":119},"Workflow","i-lucide-terminal","\u002Flaravel-openapi-generator\u002Fworkflow","laravel-openapi-generator\u002F4.workflow",[197,201,205,209],{"title":198,"path":199,"stem":200,"since":118,"experimental":119},"Diagnostics","\u002Flaravel-openapi-generator\u002Fworkflow\u002Fdiagnostics","laravel-openapi-generator\u002F4.workflow\u002F1.diagnostics",{"title":202,"path":203,"stem":204,"since":118,"experimental":119},"Continuous integration","\u002Flaravel-openapi-generator\u002Fworkflow\u002Fcontinuous-integration","laravel-openapi-generator\u002F4.workflow\u002F2.continuous-integration",{"title":206,"path":207,"stem":208,"since":118,"experimental":119},"Troubleshooting","\u002Flaravel-openapi-generator\u002Fworkflow\u002Ftroubleshooting","laravel-openapi-generator\u002F4.workflow\u002F3.troubleshooting",{"title":210,"path":211,"stem":212,"since":118,"experimental":119},"Agent skills","\u002Flaravel-openapi-generator\u002Fworkflow\u002Fagent-skills","laravel-openapi-generator\u002F4.workflow\u002F4.agent-skills",{"title":214,"since":118,"experimental":119,"icon":215,"path":216,"stem":217,"children":218,"page":119},"Extending","i-lucide-puzzle","\u002Flaravel-openapi-generator\u002Fextending","laravel-openapi-generator\u002F5.extending",[219,223,227,231,235,239],{"title":220,"path":221,"stem":222,"since":118,"experimental":119},"Overview","\u002Flaravel-openapi-generator\u002Fextending\u002Foverview","laravel-openapi-generator\u002F5.extending\u002F1.overview",{"title":224,"path":225,"stem":226,"since":118,"experimental":119},"Rule mappers","\u002Flaravel-openapi-generator\u002Fextending\u002Frule-mappers","laravel-openapi-generator\u002F5.extending\u002F2.rule-mappers",{"title":228,"path":229,"stem":230,"since":118,"experimental":119},"Request & response extractors","\u002Flaravel-openapi-generator\u002Fextending\u002Frequest-and-response-extractors","laravel-openapi-generator\u002F5.extending\u002F3.request-and-response-extractors",{"title":232,"path":233,"stem":234,"since":118,"experimental":119},"Operations & strategies","\u002Flaravel-openapi-generator\u002Fextending\u002Foperations-and-strategies","laravel-openapi-generator\u002F5.extending\u002F4.operations-and-strategies",{"title":236,"path":237,"stem":238,"since":118,"experimental":119},"Samplers","\u002Flaravel-openapi-generator\u002Fextending\u002Fsamplers","laravel-openapi-generator\u002F5.extending\u002F5.samplers",{"title":240,"path":241,"stem":242,"since":118,"experimental":119},"Passes & middlewares","\u002Flaravel-openapi-generator\u002Fextending\u002Fpasses-and-middlewares","laravel-openapi-generator\u002F5.extending\u002F6.passes-and-middlewares",{"title":244,"since":118,"experimental":119,"icon":245,"path":246,"stem":247,"children":248,"page":119},"Integrations","i-lucide-plug","\u002Flaravel-openapi-generator\u002Fintegrations","laravel-openapi-generator\u002F6.integrations",[249,253],{"title":250,"path":251,"stem":252,"since":118,"experimental":119},"JSON:API","\u002Flaravel-openapi-generator\u002Fintegrations\u002Fjson-api","laravel-openapi-generator\u002F6.integrations\u002F1.json-api",{"title":254,"path":255,"stem":256,"since":257,"experimental":119},"API revisions","\u002Flaravel-openapi-generator\u002Fintegrations\u002Fapi-revisions","laravel-openapi-generator\u002F6.integrations\u002F2.api-revisions","1.2",{"title":259,"since":118,"experimental":119,"icon":260,"path":261,"stem":262,"children":263,"page":119},"Reference","i-lucide-library","\u002Flaravel-openapi-generator\u002Freference","laravel-openapi-generator\u002F7.reference",[264,268,272,276,280],{"title":265,"path":266,"stem":267,"since":118,"experimental":119},"Configuration","\u002Flaravel-openapi-generator\u002Freference\u002Fconfiguration","laravel-openapi-generator\u002F7.reference\u002F1.configuration",{"title":269,"path":270,"stem":271,"since":118,"experimental":119},"Attributes","\u002Flaravel-openapi-generator\u002Freference\u002Fattributes","laravel-openapi-generator\u002F7.reference\u002F2.attributes",{"title":273,"path":274,"stem":275,"since":118,"experimental":119},"Commands","\u002Flaravel-openapi-generator\u002Freference\u002Fcommands","laravel-openapi-generator\u002F7.reference\u002F3.commands",{"title":277,"path":278,"stem":279,"since":118,"experimental":119},"Validation rules","\u002Flaravel-openapi-generator\u002Freference\u002Fvalidation-rules","laravel-openapi-generator\u002F7.reference\u002F4.validation-rules",{"title":281,"path":282,"stem":283,"since":118,"experimental":119},"PHPDoc types","\u002Flaravel-openapi-generator\u002Freference\u002Fphpdoc-types","laravel-openapi-generator\u002F7.reference\u002F5.phpdoc-types",{"title":285,"path":286,"children":287},"Releases","\u002Flaravel-openapi-generator\u002Freleases",[288,292],{"title":289,"path":290,"stem":291,"since":118,"experimental":119},"Upgrade guide","\u002Flaravel-openapi-generator\u002Fupgrade","laravel-openapi-generator\u002FUPGRADE",{"title":293,"path":294,"stem":295,"since":118,"experimental":119},"Changelog","\u002Flaravel-openapi-generator\u002Fchangelog","laravel-openapi-generator\u002FCHANGELOG",{"id":297,"title":298,"body":299,"description":309,"experimental":119,"extension":2057,"links":118,"meta":2058,"navigation":1637,"path":290,"rawbody":2059,"seo":2060,"since":118,"stem":291,"__hash__":2061},"laravel_openapi_generator\u002Flaravel-openapi-generator\u002FUPGRADE.md","Upgrading from 0.6 to 1.0",{"type":300,"value":301,"toc":2047},"minimark",[302,306,310,324,329,413,417,474,477,495,1231,1234,1255,1438,1453,1456,1480,1483,1559,1792,1794,1808,1914,1925,1929,2043],[303,304,298],"h1",{"id":305},"upgrading-from-06-to-10",[307,308,309],"p",{},"1.0 is a rewrite. The configuration, the PHPDoc tags, the parser classes and the middleware transformers of 0.6 are\nreplaced; the documented behaviour is kept and extended. Plan to regenerate your documents and review the diff.",[307,311,312,313,323],{},"Coding agents: the package ships a migration skill, ",[314,315,319],"a",{"href":316,"rel":317},"https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-openapi-generator\u002Fblob\u002Fmaster\u002Fskills\u002Flaravel-openapi-generator-upgrade\u002FSKILL.md",[318],"nofollow",[320,321,322],"code",{},"skills\u002Flaravel-openapi-generator-upgrade\u002F",",\nwith a step-by-step procedure, the complete mapping and tested before\u002Fafter examples.",[325,326,328],"h2",{"id":327},"requirements","Requirements",[330,331,332,346],"table",{},[333,334,335],"thead",{},[336,337,338,341,343],"tr",{},[339,340],"th",{},[339,342,76],{},[339,344,345],{},"1.0",[347,348,349,361,372,383,397],"tbody",{},[336,350,351,355,358],{},[352,353,354],"td",{},"PHP",[352,356,357],{},"8.1+",[352,359,360],{},"8.3+",[336,362,363,366,369],{},[352,364,365],{},"Laravel",[352,367,368],{},"10, 11, 12, 13",[352,370,371],{},"13",[336,373,374,377,380],{},[352,375,376],{},"OpenAPI written",[352,378,379],{},"3.0.2",[352,381,382],{},"3.0.0 → 3.0.4, 3.1.0 → 3.1.2, 3.2.0 (3.1.2 by default)",[336,384,385,388,393],{},[352,386,387],{},"OpenAPI objects",[352,389,390],{},[320,391,392],{},"goldspecdigital\u002Foooas",[352,394,395],{},[320,396,107],{},[336,398,399,402,407],{},[352,400,401],{},"PHPDoc",[352,403,404],{},[320,405,406],{},"phpdocumentor\u002Freflection-docblock",[352,408,409,412],{},[320,410,411],{},"phpstan\u002Fphpdoc-parser"," (generics, array shapes, conditional types)",[325,414,416],{"id":415},"steps","Steps",[418,419,420,426,441,457,464],"ol",{},[421,422,423],"li",{},[320,424,425],{},"composer require ark4ne\u002Flaravel-openapi-generator:^1.0",[421,427,428,429,432,433,436,437,440],{},"Move your ",[320,430,431],{},"config\u002Fopenapi.php"," aside, publish the new one (",[320,434,435],{},"php artisan vendor:publish --tag=openapi-config",") and\ncarry your values over with the table below. The command rejects unknown keys (",[320,438,439],{},"versions"," among them) with the\nkey, the expected value and the received one.",[421,442,443,444,447,448,451,452,456],{},"Replace the ",[320,445,446],{},"@oa-*"," tags and the ",[320,449,450],{},"#[Response]"," arguments (see ",[314,453,455],{"href":454},"#phpdoc-tags-and-attributes","PHPDoc tags and attributes",").",[421,458,459,460,456],{},"Port your parsers and transformers to extractors, rule mappers and middleware mappers (see\n",[314,461,463],{"href":462},"#extensions","Extensions",[421,465,466,469,470,473],{},[320,467,468],{},"php artisan openapi:generate -v",", read the diagnostics, then ",[320,471,472],{},"php artisan openapi:inspect \u003Croute>"," for a route\nwhose documentation surprises you.",[325,475,265],{"id":476},"configuration",[307,478,479,480,483,484,487,488,490,491,494],{},"Keys are now in ",[320,481,482],{},"snake_case"," (they were in ",[320,485,486],{},"kebab-case","). ",[320,489,439],{}," becomes ",[320,492,493],{},"documents","; the OpenAPI version is\nchosen per document.",[330,496,497,508],{},[333,498,499],{},[336,500,501,503,505],{},[339,502,76],{},[339,504,345],{},[339,506,507],{},"Note",[347,509,510,524,538,565,592,612,624,639,664,678,692,706,733,760,775,789,808,826,858,876,899,929,958,972,987,1012,1027,1046,1060,1096,1122,1136,1151,1168,1181,1199,1217],{},[336,511,512,517,522],{},[352,513,514],{},[320,515,516],{},"output-disk",[352,518,519],{},[320,520,521],{},"output.disk",[352,523],{},[336,525,526,531,536],{},[352,527,528],{},[320,529,530],{},"output-dir",[352,532,533],{},[320,534,535],{},"output.directory",[352,537],{},[336,539,540,545,550],{},[352,541,542],{},[320,543,544],{},"versions.\u003Cv>.output-file",[352,546,547],{},[320,548,549],{},"documents.\u003Cv>.output.file",[352,551,552,553,556,557,560,561,564],{},"Accepts ",[320,554,555],{},"{document}"," and ",[320,558,559],{},"{locale}","; 0.6 prefixed the locale (",[320,562,563],{},"fr-openapi.json","), 1.0 inserts it before the extension",[336,566,567,569,578],{},[352,568],{},[352,570,571,574,575],{},[320,572,573],{},"output.format",", ",[320,576,577],{},"documents.\u003Cv>.output.format",[352,579,580,583,584,587,588,591],{},[320,581,582],{},"json"," or ",[320,585,586],{},"yaml"," (needs ",[320,589,590],{},"symfony\u002Fyaml",")",[336,593,594,599,603],{},[352,595,596],{},[320,597,598],{},"servers",[352,600,601],{},[320,602,598],{},[352,604,605,490,608,611],{},[320,606,607],{},"variable",[320,609,610],{},"variables"," (0.6 never wrote the variables)",[336,613,614,618,622],{},[352,615,616],{},[320,617,439],{},[352,619,620],{},[320,621,493],{},[352,623],{},[336,625,626,628,636],{},[352,627],{},[352,629,630,574,633],{},[320,631,632],{},"documents.\u003Cv>.openapi",[320,634,635],{},"documents.\u003Cv>.strict",[352,637,638],{},"3.1.2 and strict by default; 0.6 always wrote 3.0.2",[336,640,641,643,648],{},[352,642],{},[352,644,645],{},[320,646,647],{},"documents.\u003Cv>.vendor_extensions",[352,649,650,653,654,657,658,661,662],{},[320,651,652],{},"redoc",": ",[320,655,656],{},"x-webhooks"," before 3.1, ",[320,659,660],{},"x-tagGroups"," before 3.2; 0.6 always wrote ",[320,663,660],{},[336,665,666,671,676],{},[352,667,668],{},[320,669,670],{},"versions.\u003Cv>.servers",[352,672,673],{},[320,674,675],{},"documents.\u003Cv>.servers",[352,677],{},[336,679,680,685,690],{},[352,681,682],{},[320,683,684],{},"versions.\u003Cv>.title",[352,686,687],{},[320,688,689],{},"documents.\u003Cv>.info.title",[352,691],{},[336,693,694,699,704],{},[352,695,696],{},[320,697,698],{},"versions.\u003Cv>.description",[352,700,701],{},[320,702,703],{},"documents.\u003Cv>.info.description",[352,705],{},[336,707,708,710,727],{},[352,709],{},[352,711,712,574,715,574,718,574,721,574,724],{},[320,713,714],{},"documents.\u003Cv>.info.version",[320,716,717],{},"summary",[320,719,720],{},"terms_of_service",[320,722,723],{},"contact",[320,725,726],{},"license",[352,728,729,730],{},"0.6 wrote the document key as ",[320,731,732],{},"info.version",[336,734,735,740,745],{},[352,736,737],{},[320,738,739],{},"versions.\u003Cv>.routes",[352,741,742],{},[320,743,744],{},"documents.\u003Cv>.routes.include",[352,746,747,748,574,751,574,754,574,757],{},"The same URI masks, or a map of masks by ",[320,749,750],{},"uri",[320,752,753],{},"name",[320,755,756],{},"domain",[320,758,759],{},"middleware",[336,761,762,764,769],{},[352,763],{},[352,765,766],{},[320,767,768],{},"documents.\u003Cv>.routes.exclude",[352,770,771,772],{},"Same shape as ",[320,773,774],{},"include",[336,776,777,782,787],{},[352,778,779],{},[320,780,781],{},"versions.\u003Cv>.ignore-verbs",[352,783,784],{},[320,785,786],{},"documents.\u003Cv>.routes.ignored_methods",[352,788],{},[336,790,791,793,798],{},[352,792],{},[352,794,795],{},[320,796,797],{},"documents.\u003Cv>.routes.internal",[352,799,800,801,574,804,807],{},"Routes of Laravel and of common packages, never documented (",[320,802,803],{},"up",[320,805,806],{},"sanctum\u002Fcsrf-cookie","…)",[336,809,810,812,817],{},[352,811],{},[352,813,814],{},[320,815,816],{},"documents.\u003Cv>.routes.order",[352,818,819,822,823],{},[320,820,821],{},"registration"," (default) or ",[320,824,825],{},"path",[336,827,828,840,850],{},[352,829,830,833,834,574,837,591],{},[320,831,832],{},"versions.\u003Cv>.name-by"," (",[320,835,836],{},"by",[320,838,839],{},"regex",[352,841,842,833,845,574,847,591],{},[320,843,844],{},"documents.\u003Cv>.strategies.summary",[320,846,836],{},[320,848,849],{},"pattern",[352,851,852,490,855],{},[320,853,854],{},"description",[320,856,857],{},"doc",[336,859,860,865,870],{},[352,861,862],{},[320,863,864],{},"versions.\u003Cv>.tag-by",[352,866,867],{},[320,868,869],{},"documents.\u003Cv>.strategies.tags",[352,871,872,490,874],{},[320,873,839],{},[320,875,849],{},[336,877,878,883,888],{},[352,879,880],{},[320,881,882],{},"versions.\u003Cv>.group-by",[352,884,885],{},[320,886,887],{},"documents.\u003Cv>.strategies.groups",[352,889,890,893,894,896,897,591],{},[320,891,892],{},"Tag.parent"," in 3.2, ",[320,895,660],{}," before (with ",[320,898,652],{},[336,900,901,903,908],{},[352,902],{},[352,904,905],{},[320,906,907],{},"documents.\u003Cv>.strategies.operation_id",[352,909,910,574,912,574,915,583,918,921,922,925,926,928],{},[320,911,753],{},[320,913,914],{},"action",[320,916,917],{},"method_path",[320,919,920],{},"method_name","; 0.6 wrote ",[320,923,924],{},"\"\u003Cmethod>:\u003Croute name>\"",", which is ",[320,927,920],{},", the value of the published configuration",[336,930,931,936,941],{},[352,932,933],{},[320,934,935],{},"versions.\u003Cv>.parameters.query.flat",[352,937,938],{},[320,939,940],{},"documents.\u003Cv>.strategies.query",[352,942,943,944,574,947,574,950,953,954,957],{},"Same values (",[320,945,946],{},"all",[320,948,949],{},"last",[320,951,952],{},"none","), plus ",[320,955,956],{},"querystring"," (3.2)",[336,959,960,965,970],{},[352,961,962],{},[320,963,964],{},"versions.\u003Cv>.use-ref",[352,966,967],{},[320,968,969],{},"documents.\u003Cv>.use_references",[352,971],{},[336,973,974,976,984],{},[352,975],{},[352,977,978,574,981],{},[320,979,980],{},"documents.\u003Cv>.security_schemes",[320,982,983],{},"documents.\u003Cv>.security",[352,985,986],{},"Schemes completing those of the middlewares, schemes required by default",[336,988,989,991,1002],{},[352,990],{},[352,992,993,574,996,574,999],{},[320,994,995],{},"documents.\u003Cv>.self",[320,997,998],{},"external_docs",[320,1000,1001],{},"extensions",[352,1003,1004,1007,1008,1011],{},[320,1005,1006],{},"$self"," (3.2), external docs and ",[320,1009,1010],{},"x-*"," of the document",[336,1013,1014,1019,1024],{},[352,1015,1016],{},[320,1017,1018],{},"parsers.requests",[352,1020,1021],{},[320,1022,1023],{},"extensions.request_extractors",[352,1025,1026],{},"Classes with a priority, no longer an ordered map",[336,1028,1029,1034,1039],{},[352,1030,1031],{},[320,1032,1033],{},"parsers.rules",[352,1035,1036],{},[320,1037,1038],{},"extensions.rule_mappers",[352,1040,1041,1042,1045],{},"Or the ",[320,1043,1044],{},"DescribesRule"," interface on the rule",[336,1047,1048,1053,1058],{},[352,1049,1050],{},[320,1051,1052],{},"parsers.responses",[352,1054,1055],{},[320,1056,1057],{},"extensions.response_extractors",[352,1059],{},[336,1061,1062,1068,1075],{},[352,1063,1064,1067],{},[320,1065,1066],{},"middlewares"," (transformers)",[352,1069,1070,833,1072,591],{},[320,1071,1066],{},[320,1073,1074],{},"MiddlewareMapper",[352,1076,1077,1078,1081,1082,574,1085,1088,1089,556,1092,1095],{},"Built-in mappers cover ",[320,1079,1080],{},"auth"," and its guards (Sanctum, Passport…), ",[320,1083,1084],{},"auth.basic",[320,1086,1087],{},"signed",", Sanctum abilities, Passport scopes and CSRF; ",[320,1090,1091],{},"throttle",[320,1093,1094],{},"can"," add their 429 and 403",[336,1097,1098,1103,1108],{},[352,1099,1100],{},[320,1101,1102],{},"format.date",[352,1104,1105],{},[320,1106,1107],{},"date_formats",[352,1109,1110,1111,574,1114,1117,1118,1121],{},"Values are OpenAPI formats (",[320,1112,1113],{},"date",[320,1115,1116],{},"date-time","), not ",[320,1119,1120],{},"Parameter"," constants",[336,1123,1124,1129,1134],{},[352,1125,1126],{},[320,1127,1128],{},"connections.use-transaction",[352,1130,1131],{},[320,1132,1133],{},"sampling.transactions",[352,1135],{},[336,1137,1138,1143,1148],{},[352,1139,1140],{},[320,1141,1142],{},"connections.on-connections",[352,1144,1145],{},[320,1146,1147],{},"sampling.connections",[352,1149,1150],{},"Drivers whose connections are wrapped in a rolled back transaction",[336,1152,1153,1155,1166],{},[352,1154],{},[352,1156,1157,574,1160,574,1163],{},[320,1158,1159],{},"sampling.collection_size",[320,1161,1162],{},"sampling.seed",[320,1164,1165],{},"sampling.examples",[352,1167],{},[336,1169,1170,1175,1179],{},[352,1171,1172],{},[320,1173,1174],{},"languages",[352,1176,1177],{},[320,1178,1174],{},[352,1180],{},[336,1182,1183,1185,1196],{},[352,1184],{},[352,1186,1187,574,1190,574,1193],{},[320,1188,1189],{},"extensions.operation_extractors",[320,1191,1192],{},"samplers",[320,1194,1195],{},"passes",[352,1197,1198],{},"New extension points",[336,1200,1201,1203,1211],{},[352,1202],{},[352,1204,1205,574,1208],{},[320,1206,1207],{},"exceptions.read_throws",[320,1209,1210],{},"exceptions.map",[352,1212,1213,1216],{},[320,1214,1215],{},"@throws"," of the actions become error responses",[336,1218,1219,1221,1226],{},[352,1220],{},[352,1222,1223],{},[320,1224,1225],{},"integrations.json_api.errors",[352,1227,1228,1229,591],{},"JSON:API error documents (with ",[320,1230,30],{},[325,1232,455],{"id":1233},"phpdoc-tags-and-attributes",[307,1235,1236,1237,1240,1241,1243,1244,1247,1248,1251,1252,1254],{},"The PHPDoc of the action still gives the texts, but not the same ones: 0.6 took the summary from the ",[320,1238,1239],{},"name-by","\nstrategy (the route name by default) and the description from the first line of the PHPDoc; 1.0 takes the summary\nfrom the first line (strategy ",[320,1242,857],{},") and the description from the rest. ",[320,1245,1246],{},"@deprecated"," deprecates the operation.\nEvery other piece of metadata is a PHP attribute of ",[320,1249,1250],{},"Ark4ne\\OpenApi\\Attributes","; 1.0 ignores the ",[320,1253,446],{}," tags\nwithout a warning, so remove each one.",[330,1256,1257,1265],{},[333,1258,1259],{},[336,1260,1261,1263],{},[339,1262,76],{},[339,1264,345],{},[347,1266,1267,1280,1297,1309,1321,1338,1351,1363,1374,1387,1399],{},[336,1268,1269,1274],{},[352,1270,1271],{},[320,1272,1273],{},"@oa-description \u003Ckey>",[352,1275,1276,1279],{},[320,1277,1278],{},"#[Operation(description: 'openapi.requests.descriptions.\u003Ckey>')]"," (a translation key is translated)",[336,1281,1282,1287],{},[352,1283,1284],{},[320,1285,1286],{},"@oa-response-status 204",[352,1288,1289,1292,1293,1296],{},[320,1290,1291],{},"#[Response(204)]"," (a ",[320,1294,1295],{},"POST"," returning a resource is already a 201)",[336,1298,1299,1304],{},[352,1300,1301],{},[320,1302,1303],{},"@oa-response-paginate [Paginator class]",[352,1305,1306],{},[320,1307,1308],{},"#[Response(resource: UserResource::class, paginator: LengthAwarePaginator::class)]",[336,1310,1311,1316],{},[352,1312,1313],{},[320,1314,1315],{},"@oa-response-header X-Id 1",[352,1317,1318],{},[320,1319,1320],{},"#[Response(headers: ['X-Id' => 'int'])]",[336,1322,1323,1328],{},[352,1324,1325],{},[320,1326,1327],{},"#[Response(statusCode: 201)]",[352,1329,1330,1333,1334,1337],{},[320,1331,1332],{},"#[Response(201)]"," (the argument is ",[320,1335,1336],{},"status","; it is repeatable, one per status)",[336,1339,1340,1345],{},[352,1341,1342],{},[320,1343,1344],{},"#[Response(statusText: 'Created')]",[352,1346,1347,1350],{},[320,1348,1349],{},"#[Response(201, description: 'Created')]"," (0.6 wrote a 200 there)",[336,1352,1353,1358],{},[352,1354,1355],{},[320,1356,1357],{},"#[Response(headers: ['X-Id' => '…'])]",[352,1359,1360,1362],{},[320,1361,1320],{}," (values are PHPDoc types)",[336,1364,1365,1370],{},[352,1366,1367],{},[320,1368,1369],{},"#[Response(paginated: true)]",[352,1371,1372],{},[320,1373,1308],{},[336,1375,1376,1382],{},[352,1377,1378,1381],{},[320,1379,1380],{},"#[Id('user')]"," on a resource",[352,1383,1384],{},[320,1385,1386],{},"#[SchemaName('User')]",[336,1388,1389,1394],{},[352,1390,1391],{},[320,1392,1393],{},"#[ResourceFactory(...)]",[352,1395,1396],{},[320,1397,1398],{},"#[ResourceFactory(factory: …, parameters: […], method: …)]",[336,1400,1401,1403],{},[352,1402],{},[352,1404,1405,574,1408,574,1411,574,1414,574,1417,574,1420,574,1423,574,1426,574,1429,574,1432,574,1435],{},[320,1406,1407],{},"#[Operation]",[320,1409,1410],{},"#[Tag]",[320,1412,1413],{},"#[Security]",[320,1415,1416],{},"#[Exclude]",[320,1418,1419],{},"#[QueryParameter]",[320,1421,1422],{},"#[PathParameter]",[320,1424,1425],{},"#[Header]",[320,1427,1428],{},"#[Cookie]",[320,1430,1431],{},"#[RequestBody]",[320,1433,1434],{},"#[Webhook]",[320,1436,1437],{},"#[Callback]",[307,1439,1440,1441,1444,1445,1448,1449,1452],{},"Attributes may be put on the controller class (they apply to every action) and on the action (it overrides them).\nThe ",[320,1442,1443],{},"@return"," type of the action is read in full (",[320,1446,1447],{},"AnonymousResourceCollection\u003CUserResource>",",\n",[320,1450,1451],{},"CatResource|DogResource",", array shapes) and drives the responses.",[325,1454,188],{"id":1455},"translations",[307,1457,1458,1459,556,1462,574,1465,1468,1469,1472,1473,1475,1476,1479],{},"0.6 looked up fixed keys: ",[320,1460,1461],{},"openapi.requests.\u003Croute name>.name",[320,1463,1464],{},".description",[320,1466,1467],{},"openapi.requests.descriptions.\u003Ckey>","\nand ",[320,1470,1471],{},"openapi.requests.parameters.\u003Cfield>",". 1.0 translates the texts themselves: a summary, a description or a tag\nthat is a translation key is translated in each language of ",[320,1474,1174],{},". Write the key where the text goes\n(",[320,1477,1478],{},"#[Operation(summary: 'openapi.requests.users.index.name')]","), or keep the 0.6 keys with two small extractors (see\nthe upgrade skill below).",[325,1481,150],{"id":1482},"requests",[330,1484,1485,1493],{},[333,1486,1487],{},[336,1488,1489,1491],{},[339,1490,76],{},[339,1492,345],{},[347,1494,1495,1517,1533],{},[336,1496,1497,1508],{},[352,1498,1499,833,1502,574,1505,591],{},[320,1500,1501],{},"Contracts\\Documentation\\DescribableRequest",[320,1503,1504],{},"describer()",[320,1506,1507],{},"describe(Describer)",[352,1509,1510,653,1513,1516],{},[320,1511,1512],{},"Extraction\\Requests\\DescribesRequest",[320,1514,1515],{},"describe(RequestDescriber $request): RequestDescriber",", the describer being immutable",[336,1518,1519,1525],{},[352,1520,1521,1524],{},[320,1522,1523],{},"Contracts\\CustomRuleParser"," on a rule",[352,1526,1527,653,1530],{},[320,1528,1529],{},"Extraction\\Rules\\DescribesRule",[320,1531,1532],{},"describe(FieldDescription $field): FieldDescription",[336,1534,1535,1543],{},[352,1536,1537,1540,1541],{},[320,1538,1539],{},"Parsers\\Rules\\*"," registered in ",[320,1542,1033],{},[352,1544,1545,1546,1549,1550,574,1553,1556,1557],{},"One ",[320,1547,1548],{},"Extraction\\Rules\\RuleMapper"," per rule (",[320,1551,1552],{},"handles()",[320,1554,1555],{},"map()","), in ",[320,1558,1038],{},[1560,1561,1566],"pre",{"className":1562,"code":1563,"language":1564,"meta":1565,"style":1565},"language-php shiki shiki-themes material-theme-lighter github-light github-dark","use Ark4ne\\OpenApi\\Extraction\\Requests\\DescribesRequest;\nuse Ark4ne\\OpenApi\\Extraction\\Requests\\RequestDescriber;\n\nfinal class SearchRequest extends FormRequest implements DescribesRequest\n{\n    public function describe(RequestDescriber $request): RequestDescriber\n    {\n        return $request->header('X-Tenant', 'required|uuid')->query(['include' => 'string']);\n    }\n}\n","php","",[320,1567,1568,1606,1632,1639,1665,1671,1706,1712,1781,1787],{"__ignoreMap":1565},[1569,1570,1573,1577,1581,1585,1588,1590,1593,1595,1597,1599,1602],"span",{"class":1571,"line":1572},"line",1,[1569,1574,1576],{"class":1575},"sw1J6","use",[1569,1578,1580],{"class":1579},"s_hVV"," Ark4ne",[1569,1582,1584],{"class":1583},"s39Yj","\\",[1569,1586,1587],{"class":1579},"OpenApi",[1569,1589,1584],{"class":1583},[1569,1591,1592],{"class":1579},"Extraction",[1569,1594,1584],{"class":1583},[1569,1596,150],{"class":1579},[1569,1598,1584],{"class":1583},[1569,1600,1601],{"class":1579},"DescribesRequest",[1569,1603,1605],{"class":1604},"sP7_E",";\n",[1569,1607,1609,1611,1613,1615,1617,1619,1621,1623,1625,1627,1630],{"class":1571,"line":1608},2,[1569,1610,1576],{"class":1575},[1569,1612,1580],{"class":1579},[1569,1614,1584],{"class":1583},[1569,1616,1587],{"class":1579},[1569,1618,1584],{"class":1583},[1569,1620,1592],{"class":1579},[1569,1622,1584],{"class":1583},[1569,1624,150],{"class":1579},[1569,1626,1584],{"class":1583},[1569,1628,1629],{"class":1579},"RequestDescriber",[1569,1631,1605],{"class":1604},[1569,1633,1635],{"class":1571,"line":1634},3,[1569,1636,1638],{"emptyLinePlaceholder":1637},true,"\n",[1569,1640,1642,1646,1649,1653,1656,1659,1662],{"class":1571,"line":1641},4,[1569,1643,1645],{"class":1644},"sbsja","final",[1569,1647,1648],{"class":1644}," class",[1569,1650,1652],{"class":1651},"sbgvK"," SearchRequest",[1569,1654,1655],{"class":1644}," extends",[1569,1657,1658],{"class":1651}," FormRequest",[1569,1660,1661],{"class":1644}," implements",[1569,1663,1664],{"class":1651}," DescribesRequest\n",[1569,1666,1668],{"class":1571,"line":1667},5,[1569,1669,1670],{"class":1604},"{\n",[1569,1672,1674,1677,1680,1684,1687,1690,1693,1697,1699,1703],{"class":1571,"line":1673},6,[1569,1675,1676],{"class":1644},"    public",[1569,1678,1679],{"class":1644}," function",[1569,1681,1683],{"class":1682},"sGLFI"," describe",[1569,1685,1686],{"class":1604},"(",[1569,1688,1629],{"class":1689},"sZMiF",[1569,1691,1692],{"class":1604}," $",[1569,1694,1696],{"class":1695},"su5hD","request",[1569,1698,591],{"class":1604},[1569,1700,1702],{"class":1701},"smGrS",":",[1569,1704,1705],{"class":1689}," RequestDescriber\n",[1569,1707,1709],{"class":1571,"line":1708},7,[1569,1710,1711],{"class":1604},"    {\n",[1569,1713,1715,1719,1721,1723,1726,1729,1731,1735,1739,1741,1744,1747,1750,1752,1754,1756,1759,1762,1764,1766,1768,1771,1773,1776,1778],{"class":1571,"line":1714},8,[1569,1716,1718],{"class":1717},"sVHd0","        return",[1569,1720,1692],{"class":1604},[1569,1722,1696],{"class":1695},[1569,1724,1725],{"class":1701},"->",[1569,1727,1728],{"class":1682},"header",[1569,1730,1686],{"class":1604},[1569,1732,1734],{"class":1733},"sjJ54","'",[1569,1736,1738],{"class":1737},"s_sjI","X-Tenant",[1569,1740,1734],{"class":1733},[1569,1742,1743],{"class":1604},",",[1569,1745,1746],{"class":1733}," '",[1569,1748,1749],{"class":1737},"required|uuid",[1569,1751,1734],{"class":1733},[1569,1753,591],{"class":1604},[1569,1755,1725],{"class":1701},[1569,1757,1758],{"class":1682},"query",[1569,1760,1761],{"class":1604},"([",[1569,1763,1734],{"class":1733},[1569,1765,774],{"class":1737},[1569,1767,1734],{"class":1733},[1569,1769,1770],{"class":1701}," =>",[1569,1772,1746],{"class":1733},[1569,1774,1775],{"class":1737},"string",[1569,1777,1734],{"class":1733},[1569,1779,1780],{"class":1604},"]);\n",[1569,1782,1784],{"class":1571,"line":1783},9,[1569,1785,1786],{"class":1604},"    }\n",[1569,1788,1789],{"class":1571,"line":29},[1569,1790,1791],{"class":1604},"}\n",[325,1793,463],{"id":1001},[307,1795,1796,1797,1800,1801,1804,1805,1807],{},"Every extension point is an interface; implementations declare their priority (",[320,1798,1799],{},"priority()"," returning a public\n",[320,1802,1803],{},"PRIORITY"," constant) instead of depending on the order of a configuration array. They are listed in ",[320,1806,1001],{},"\nor tagged in the container by packages, and built through the container.",[330,1809,1810,1821],{},[333,1811,1812],{},[336,1813,1814,1816,1818],{},[339,1815,76],{},[339,1817,345],{},[339,1819,1820],{},"Registry",[347,1822,1823,1837,1850,1864,1879,1890,1902],{},[336,1824,1825,1829,1834],{},[352,1826,1827],{},[320,1828,1018],{},[352,1830,1831],{},[320,1832,1833],{},"Extraction\\Requests\\RequestExtractor",[352,1835,1836],{},"every supporting extractor runs, by increasing priority",[336,1838,1839,1843,1847],{},[352,1840,1841],{},[320,1842,1033],{},[352,1844,1845],{},[320,1846,1548],{},[352,1848,1849],{},"indexed by rule name or class; a later mapper replaces an earlier one",[336,1851,1852,1856,1861],{},[352,1853,1854],{},[320,1855,1052],{},[352,1857,1858],{},[320,1859,1860],{},"Extraction\\Responses\\ResponseExtractor",[352,1862,1863],{},"the first supporting extractor, by decreasing priority",[336,1865,1866,1871,1876],{},[352,1867,1868,1870],{},[320,1869,1066],{}," transformers",[352,1872,1873],{},[320,1874,1875],{},"Generation\\MiddlewareMapper",[352,1877,1878],{},"by middleware name or class",[336,1880,1881,1883,1888],{},[352,1882],{},[352,1884,1885],{},[320,1886,1887],{},"Extraction\\Operations\\OperationExtractor",[352,1889,1836],{},[336,1891,1892,1894,1899],{},[352,1893],{},[352,1895,1896],{},[320,1897,1898],{},"Sampling\\Sampler",[352,1900,1901],{},"the first supporting sampler, by decreasing priority",[336,1903,1904,1906,1911],{},[352,1905],{},[352,1907,1908],{},[320,1909,1910],{},"Generation\\Pass",[352,1912,1913],{},"in order, after the built-in passes",[307,1915,1916,1917,1920,1921,1924],{},"An extractor never throws for application code it does not understand: it adds a diagnostic\n(",[320,1918,1919],{},"$context->diagnostics->warning(...)","), shown by ",[320,1922,1923],{},"openapi:generate",".",[325,1926,1928],{"id":1927},"what-changes-in-the-documents","What changes in the documents",[1930,1931,1932,1946,1980,1987,1994,2006,2016],"ul",{},[421,1933,1934,1935,574,1938,1941,1942,1945],{},"The version is 3.1.2 unless you choose another one; ",[320,1936,1937],{},"nullable",[320,1939,1940],{},"exclusiveMinimum",", several types and ",[320,1943,1944],{},"const"," are\nwritten for the version.",[421,1947,1948,1951,1952,1955,1956,1959,1960,1962,1963,1965,1966,1969,1970,1973,1974,1448,1976,1979],{},[320,1949,1950],{},"operationId"," keeps the 0.6 form (",[320,1953,1954],{},"GET:users.index",", one per method of a route) with the published configuration\n(",[320,1957,1958],{},"strategies.operation_id"," set to ",[320,1961,920],{},"). Without that key, or with ",[320,1964,753],{},", it is the route name\n(",[320,1967,1968],{},"users.index",", deduplicated: a route with several methods, like ",[320,1971,1972],{},"Route::any()",", gives ",[320,1975,1968],{},[320,1977,1978],{},"users.index_2","…).",[421,1981,1982,1983,1986],{},"401, 403, 404, 419, 422 and 429 responses are added from the middlewares, the bound models and the validation, as\nshared ",[320,1984,1985],{},"components.responses","; the 422 has a schema.",[421,1988,1989,1990,1993],{},"Optional path parameters (",[320,1991,1992],{},"{id?}",") give one path with and one without them.",[421,1995,1996,1997,833,2000,1117,2003,1924],{},"Resources are components named after the class without ",[320,1998,1999],{},"Resource",[320,2001,2002],{},"User",[320,2004,2005],{},"resource-\u003Chash>-user-resource",[421,2007,2008,2009,556,2012,2015],{},"The ",[320,2010,2011],{},"Date",[320,2013,2014],{},"Cache-Control"," headers of the sampled responses are no longer written.",[421,2017,2018,2019,2022,2023,574,2025,2028,2029,2032,2033,574,2036,556,2039,2042],{},"JSON:API resources: ",[320,2020,2021],{},"type"," is a ",[320,2024,1944],{},[320,2026,2027],{},"id"," is typed, ",[320,2030,2031],{},"included"," lists every reachable resource with a\ndiscriminator, and the ",[320,2034,2035],{},"x-ref",[320,2037,2038],{},"x-type",[320,2040,2041],{},"x-name"," extensions are gone.",[2044,2045,2046],"style",{},"html pre.shiki code .sw1J6, html code.shiki .sw1J6{--shiki-light:#F76D47;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .s_hVV, html code.shiki .s_hVV{--shiki-light:#90A4AE;--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 pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sbsja, html code.shiki .sbsja{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sGLFI, html code.shiki .sGLFI{--shiki-light:#6182B8;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVHd0, html code.shiki .sVHd0{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit}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 .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);}",{"title":1565,"searchDepth":1634,"depth":1634,"links":2048},[2049,2050,2051,2052,2053,2054,2055,2056],{"id":327,"depth":1608,"text":328},{"id":415,"depth":1608,"text":416},{"id":476,"depth":1608,"text":265},{"id":1233,"depth":1608,"text":455},{"id":1455,"depth":1608,"text":188},{"id":1482,"depth":1608,"text":150},{"id":1001,"depth":1608,"text":463},{"id":1927,"depth":1608,"text":1928},"md",{},"# Upgrading from 0.6 to 1.0\n\n1.0 is a rewrite. The configuration, the PHPDoc tags, the parser classes and the middleware transformers of 0.6 are\nreplaced; the documented behaviour is kept and extended. Plan to regenerate your documents and review the diff.\n\nCoding agents: the package ships a migration skill, [`skills\u002Flaravel-openapi-generator-upgrade\u002F`](https:\u002F\u002Fgithub.com\u002FArk4ne\u002Flaravel-openapi-generator\u002Fblob\u002Fmaster\u002Fskills\u002Flaravel-openapi-generator-upgrade\u002FSKILL.md),\nwith a step-by-step procedure, the complete mapping and tested before\u002Fafter examples.\n\n## Requirements\n\n| | 0.6 | 1.0 |\n| --- | --- | --- |\n| PHP | 8.1+ | 8.3+ |\n| Laravel | 10, 11, 12, 13 | 13 |\n| OpenAPI written | 3.0.2 | 3.0.0 → 3.0.4, 3.1.0 → 3.1.2, 3.2.0 (3.1.2 by default) |\n| OpenAPI objects | `goldspecdigital\u002Foooas` | `ark4ne\u002Fopenapi-writer` |\n| PHPDoc | `phpdocumentor\u002Freflection-docblock` | `phpstan\u002Fphpdoc-parser` (generics, array shapes, conditional types) |\n\n## Steps\n\n1. `composer require ark4ne\u002Flaravel-openapi-generator:^1.0`\n2. Move your `config\u002Fopenapi.php` aside, publish the new one (`php artisan vendor:publish --tag=openapi-config`) and\n   carry your values over with the table below. The command rejects unknown keys (`versions` among them) with the\n   key, the expected value and the received one.\n3. Replace the `@oa-*` tags and the `#[Response]` arguments (see [PHPDoc tags and attributes](#phpdoc-tags-and-attributes)).\n4. Port your parsers and transformers to extractors, rule mappers and middleware mappers (see\n   [Extensions](#extensions)).\n5. `php artisan openapi:generate -v`, read the diagnostics, then `php artisan openapi:inspect \u003Croute>` for a route\n   whose documentation surprises you.\n\n## Configuration\n\nKeys are now in `snake_case` (they were in `kebab-case`). `versions` becomes `documents`; the OpenAPI version is\nchosen per document.\n\n| 0.6 | 1.0 | Note |\n| --- | --- | --- |\n| `output-disk` | `output.disk` | |\n| `output-dir` | `output.directory` | |\n| `versions.\u003Cv>.output-file` | `documents.\u003Cv>.output.file` | Accepts `{document}` and `{locale}`; 0.6 prefixed the locale (`fr-openapi.json`), 1.0 inserts it before the extension |\n| | `output.format`, `documents.\u003Cv>.output.format` | `json` or `yaml` (needs `symfony\u002Fyaml`) |\n| `servers` | `servers` | `variable` becomes `variables` (0.6 never wrote the variables) |\n| `versions` | `documents` | |\n| | `documents.\u003Cv>.openapi`, `documents.\u003Cv>.strict` | 3.1.2 and strict by default; 0.6 always wrote 3.0.2 |\n| | `documents.\u003Cv>.vendor_extensions` | `redoc`: `x-webhooks` before 3.1, `x-tagGroups` before 3.2; 0.6 always wrote `x-tagGroups` |\n| `versions.\u003Cv>.servers` | `documents.\u003Cv>.servers` | |\n| `versions.\u003Cv>.title` | `documents.\u003Cv>.info.title` | |\n| `versions.\u003Cv>.description` | `documents.\u003Cv>.info.description` | |\n| | `documents.\u003Cv>.info.version`, `summary`, `terms_of_service`, `contact`, `license` | 0.6 wrote the document key as `info.version` |\n| `versions.\u003Cv>.routes` | `documents.\u003Cv>.routes.include` | The same URI masks, or a map of masks by `uri`, `name`, `domain`, `middleware` |\n| | `documents.\u003Cv>.routes.exclude` | Same shape as `include` |\n| `versions.\u003Cv>.ignore-verbs` | `documents.\u003Cv>.routes.ignored_methods` | |\n| | `documents.\u003Cv>.routes.internal` | Routes of Laravel and of common packages, never documented (`up`, `sanctum\u002Fcsrf-cookie`…) |\n| | `documents.\u003Cv>.routes.order` | `registration` (default) or `path` |\n| `versions.\u003Cv>.name-by` (`by`, `regex`) | `documents.\u003Cv>.strategies.summary` (`by`, `pattern`) | `description` becomes `doc` |\n| `versions.\u003Cv>.tag-by` | `documents.\u003Cv>.strategies.tags` | `regex` becomes `pattern` |\n| `versions.\u003Cv>.group-by` | `documents.\u003Cv>.strategies.groups` | `Tag.parent` in 3.2, `x-tagGroups` before (with `redoc`) |\n| | `documents.\u003Cv>.strategies.operation_id` | `name`, `action`, `method_path` or `method_name`; 0.6 wrote `\"\u003Cmethod>:\u003Croute name>\"`, which is `method_name`, the value of the published configuration |\n| `versions.\u003Cv>.parameters.query.flat` | `documents.\u003Cv>.strategies.query` | Same values (`all`, `last`, `none`), plus `querystring` (3.2) |\n| `versions.\u003Cv>.use-ref` | `documents.\u003Cv>.use_references` | |\n| | `documents.\u003Cv>.security_schemes`, `documents.\u003Cv>.security` | Schemes completing those of the middlewares, schemes required by default |\n| | `documents.\u003Cv>.self`, `external_docs`, `extensions` | `$self` (3.2), external docs and `x-*` of the document |\n| `parsers.requests` | `extensions.request_extractors` | Classes with a priority, no longer an ordered map |\n| `parsers.rules` | `extensions.rule_mappers` | Or the `DescribesRule` interface on the rule |\n| `parsers.responses` | `extensions.response_extractors` | |\n| `middlewares` (transformers) | `middlewares` (`MiddlewareMapper`) | Built-in mappers cover `auth` and its guards (Sanctum, Passport…), `auth.basic`, `signed`, Sanctum abilities, Passport scopes and CSRF; `throttle` and `can` add their 429 and 403 |\n| `format.date` | `date_formats` | Values are OpenAPI formats (`date`, `date-time`), not `Parameter` constants |\n| `connections.use-transaction` | `sampling.transactions` | |\n| `connections.on-connections` | `sampling.connections` | Drivers whose connections are wrapped in a rolled back transaction |\n| | `sampling.collection_size`, `sampling.seed`, `sampling.examples` | |\n| `languages` | `languages` | |\n| | `extensions.operation_extractors`, `samplers`, `passes` | New extension points |\n| | `exceptions.read_throws`, `exceptions.map` | `@throws` of the actions become error responses |\n| | `integrations.json_api.errors` | JSON:API error documents (with `ark4ne\u002Flaravel-json-api`) |\n\n## PHPDoc tags and attributes\n\nThe PHPDoc of the action still gives the texts, but not the same ones: 0.6 took the summary from the `name-by`\nstrategy (the route name by default) and the description from the first line of the PHPDoc; 1.0 takes the summary\nfrom the first line (strategy `doc`) and the description from the rest. `@deprecated` deprecates the operation.\nEvery other piece of metadata is a PHP attribute of `Ark4ne\\OpenApi\\Attributes`; 1.0 ignores the `@oa-*` tags\nwithout a warning, so remove each one.\n\n| 0.6 | 1.0 |\n| --- | --- |\n| `@oa-description \u003Ckey>` | `#[Operation(description: 'openapi.requests.descriptions.\u003Ckey>')]` (a translation key is translated) |\n| `@oa-response-status 204` | `#[Response(204)]` (a `POST` returning a resource is already a 201) |\n| `@oa-response-paginate [Paginator class]` | `#[Response(resource: UserResource::class, paginator: LengthAwarePaginator::class)]` |\n| `@oa-response-header X-Id 1` | `#[Response(headers: ['X-Id' => 'int'])]` |\n| `#[Response(statusCode: 201)]` | `#[Response(201)]` (the argument is `status`; it is repeatable, one per status) |\n| `#[Response(statusText: 'Created')]` | `#[Response(201, description: 'Created')]` (0.6 wrote a 200 there) |\n| `#[Response(headers: ['X-Id' => '…'])]` | `#[Response(headers: ['X-Id' => 'int'])]` (values are PHPDoc types) |\n| `#[Response(paginated: true)]` | `#[Response(resource: UserResource::class, paginator: LengthAwarePaginator::class)]` |\n| `#[Id('user')]` on a resource | `#[SchemaName('User')]` |\n| `#[ResourceFactory(...)]` | `#[ResourceFactory(factory: …, parameters: […], method: …)]` |\n| | `#[Operation]`, `#[Tag]`, `#[Security]`, `#[Exclude]`, `#[QueryParameter]`, `#[PathParameter]`, `#[Header]`, `#[Cookie]`, `#[RequestBody]`, `#[Webhook]`, `#[Callback]` |\n\nAttributes may be put on the controller class (they apply to every action) and on the action (it overrides them).\nThe `@return` type of the action is read in full (`AnonymousResourceCollection\u003CUserResource>`,\n`CatResource|DogResource`, array shapes) and drives the responses.\n\n## Translations\n\n0.6 looked up fixed keys: `openapi.requests.\u003Croute name>.name` and `.description`, `openapi.requests.descriptions.\u003Ckey>`\nand `openapi.requests.parameters.\u003Cfield>`. 1.0 translates the texts themselves: a summary, a description or a tag\nthat is a translation key is translated in each language of `languages`. Write the key where the text goes\n(`#[Operation(summary: 'openapi.requests.users.index.name')]`), or keep the 0.6 keys with two small extractors (see\nthe upgrade skill below).\n\n## Requests\n\n| 0.6 | 1.0 |\n| --- | --- |\n| `Contracts\\Documentation\\DescribableRequest` (`describer()`, `describe(Describer)`) | `Extraction\\Requests\\DescribesRequest`: `describe(RequestDescriber $request): RequestDescriber`, the describer being immutable |\n| `Contracts\\CustomRuleParser` on a rule | `Extraction\\Rules\\DescribesRule`: `describe(FieldDescription $field): FieldDescription` |\n| `Parsers\\Rules\\*` registered in `parsers.rules` | One `Extraction\\Rules\\RuleMapper` per rule (`handles()`, `map()`), in `extensions.rule_mappers` |\n\n```php\nuse Ark4ne\\OpenApi\\Extraction\\Requests\\DescribesRequest;\nuse Ark4ne\\OpenApi\\Extraction\\Requests\\RequestDescriber;\n\nfinal class SearchRequest extends FormRequest implements DescribesRequest\n{\n    public function describe(RequestDescriber $request): RequestDescriber\n    {\n        return $request->header('X-Tenant', 'required|uuid')->query(['include' => 'string']);\n    }\n}\n```\n\n## Extensions\n\nEvery extension point is an interface; implementations declare their priority (`priority()` returning a public\n`PRIORITY` constant) instead of depending on the order of a configuration array. They are listed in `extensions`\nor tagged in the container by packages, and built through the container.\n\n| 0.6 | 1.0 | Registry |\n| --- | --- | --- |\n| `parsers.requests` | `Extraction\\Requests\\RequestExtractor` | every supporting extractor runs, by increasing priority |\n| `parsers.rules` | `Extraction\\Rules\\RuleMapper` | indexed by rule name or class; a later mapper replaces an earlier one |\n| `parsers.responses` | `Extraction\\Responses\\ResponseExtractor` | the first supporting extractor, by decreasing priority |\n| `middlewares` transformers | `Generation\\MiddlewareMapper` | by middleware name or class |\n| | `Extraction\\Operations\\OperationExtractor` | every supporting extractor runs, by increasing priority |\n| | `Sampling\\Sampler` | the first supporting sampler, by decreasing priority |\n| | `Generation\\Pass` | in order, after the built-in passes |\n\nAn extractor never throws for application code it does not understand: it adds a diagnostic\n(`$context->diagnostics->warning(...)`), shown by `openapi:generate`.\n\n## What changes in the documents\n\n- The version is 3.1.2 unless you choose another one; `nullable`, `exclusiveMinimum`, several types and `const` are\n  written for the version.\n- `operationId` keeps the 0.6 form (`GET:users.index`, one per method of a route) with the published configuration\n  (`strategies.operation_id` set to `method_name`). Without that key, or with `name`, it is the route name\n  (`users.index`, deduplicated: a route with several methods, like `Route::any()`, gives `users.index`,\n  `users.index_2`…).\n- 401, 403, 404, 419, 422 and 429 responses are added from the middlewares, the bound models and the validation, as\n  shared `components.responses`; the 422 has a schema.\n- Optional path parameters (`{id?}`) give one path with and one without them.\n- Resources are components named after the class without `Resource` (`User`), not `resource-\u003Chash>-user-resource`.\n- The `Date` and `Cache-Control` headers of the sampled responses are no longer written.\n- JSON:API resources: `type` is a `const`, `id` is typed, `included` lists every reachable resource with a\n  discriminator, and the `x-ref`, `x-type` and `x-name` extensions are gone.\n",{"title":298,"description":309},"5FHlxNP_9uHJV4BvlvAZ4XqEsVMwZNBsnx-JSQQvoW0",[2063,118],{"title":293,"path":294,"stem":295,"description":2064,"children":-1},"All notable changes to this project are documented in this file.\nThe format follows Keep a Changelog, and the project adheres to\nSemantic Versioning.",1795438903172]