[{"data":1,"prerenderedAt":886},["ShallowReactive",2],{"libs":3,"navigation-laravel-openapi-generator":115,"\u002Flaravel-openapi-generator\u002Freference\u002Fphpdoc-types":296,"\u002Flaravel-openapi-generator\u002Freference\u002Fphpdoc-types-surround":881},[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":281,"body":298,"description":874,"experimental":119,"extension":875,"links":118,"meta":876,"navigation":877,"path":282,"rawbody":878,"seo":879,"since":118,"stem":283,"__hash__":880},"laravel_openapi_generator\u002Flaravel-openapi-generator\u002F7.reference\u002F5.phpdoc-types.md",{"type":299,"value":300,"toc":865},"minimark",[301,340,345,568,572,664,668,796,800,851],[302,303,304,305,309,310,313,314,317,318,321,322,321,325,321,328,331,332,335,336,339],"p",{},"Types are read in the PHPDoc of the actions (",[306,307,308],"code",{},"@return","), of the models (",[306,311,312],{},"@property",") and in the ",[306,315,316],{},"type"," parameters of\nthe attributes (",[306,319,320],{},"#[Response(type: …)]",", ",[306,323,324],{},"#[RequestBody(type: …)]",[306,326,327],{},"#[QueryParameter(type: …)]",[306,329,330],{},"headers"," of\n",[306,333,334],{},"#[Response]","…). They follow the syntax of PHPStan and Psalm. A class name is resolved with the ",[306,337,338],{},"use"," statements of the\nfile that holds the type.",[341,342,344],"h2",{"id":343},"scalars","Scalars",[346,347,348,361],"table",{},[349,350,351],"thead",{},[352,353,354,358],"tr",{},[355,356,357],"th",{},"Type",[355,359,360],{},"Schema",[362,363,364,377,397,415,432,447,468,485,497,509,528,543,555],"tbody",{},[352,365,366,372],{},[367,368,369],"td",{},[306,370,371],{},"int",[367,373,374],{},[306,375,376],{},"{\"type\": \"integer\"}",[352,378,379,387],{},[367,380,381,321,384],{},[306,382,383],{},"positive-int",[306,385,386],{},"non-negative-int",[367,388,389,392,393,396],{},[306,390,391],{},"integer"," with ",[306,394,395],{},"minimum"," 1 or 0",[352,398,399,407],{},[367,400,401,321,404],{},[306,402,403],{},"negative-int",[306,405,406],{},"non-positive-int",[367,408,409,392,411,414],{},[306,410,391],{},[306,412,413],{},"maximum"," -1 or 0",[352,416,417,422],{},[367,418,419],{},[306,420,421],{},"int\u003C0, 10>",[367,423,424,392,426,428,429,431],{},[306,425,391],{},[306,427,395],{}," 0 and ",[306,430,413],{}," 10",[352,433,434,442],{},[367,435,436,321,439],{},[306,437,438],{},"float",[306,440,441],{},"numeric",[367,443,444],{},[306,445,446],{},"{\"type\": \"number\"}",[352,448,449,463],{},[367,450,451,321,454,321,457,321,460],{},[306,452,453],{},"string",[306,455,456],{},"literal-string",[306,458,459],{},"lowercase-string",[306,461,462],{},"class-string",[367,464,465],{},[306,466,467],{},"{\"type\": \"string\"}",[352,469,470,478],{},[367,471,472,321,475],{},[306,473,474],{},"non-empty-string",[306,476,477],{},"non-falsy-string",[367,479,480,392,482],{},[306,481,453],{},[306,483,484],{},"minLength: 1",[352,486,487,492],{},[367,488,489],{},[306,490,491],{},"numeric-string",[367,493,494,496],{},[306,495,453],{}," with a pattern of a number",[352,498,499,504],{},[367,500,501],{},[306,502,503],{},"bool",[367,505,506],{},[306,507,508],{},"{\"type\": \"boolean\"}",[352,510,511,519],{},[367,512,513,321,516],{},[306,514,515],{},"true",[306,517,518],{},"false",[367,520,521,524,525],{},[306,522,523],{},"boolean"," with its ",[306,526,527],{},"const",[352,529,530,538],{},[367,531,532,321,535],{},[306,533,534],{},"null",[306,536,537],{},"void",[367,539,540],{},[306,541,542],{},"{\"type\": \"null\"}",[352,544,545,550],{},[367,546,547],{},[306,548,549],{},"mixed",[367,551,552],{},[306,553,554],{},"{}",[352,556,557,562],{},[367,558,559],{},[306,560,561],{},"array-key",[367,563,564,567],{},[306,565,566],{},"anyOf"," string and integer",[341,569,571],{"id":570},"literals-and-unions","Literals and unions",[346,573,574,582],{},[349,575,576],{},[352,577,578,580],{},[355,579,357],{},[355,581,360],{},[362,583,584,596,608,620,640,652],{},[352,585,586,591],{},[367,587,588],{},[306,589,590],{},"'draft'|'published'",[367,592,593],{},[306,594,595],{},"{\"type\": \"string\", \"enum\": [\"draft\", \"published\"]}",[352,597,598,603],{},[367,599,600],{},[306,601,602],{},"'auto'|1|true",[367,604,605],{},[306,606,607],{},"{\"enum\": [\"auto\", 1, true]}",[352,609,610,615],{},[367,611,612],{},[306,613,614],{},"1",[367,616,617],{},[306,618,619],{},"{\"type\": \"integer\", \"const\": 1}",[352,621,622,630],{},[367,623,624,321,627],{},[306,625,626],{},"?int",[306,628,629],{},"int|null",[367,631,632,635,636,639],{},[306,633,634],{},"{\"type\": [\"integer\", \"null\"]}"," (written ",[306,637,638],{},"nullable: true"," in 3.0)",[352,641,642,647],{},[367,643,644],{},[306,645,646],{},"int|string",[367,648,649,651],{},[306,650,566],{}," of the two",[352,653,654,659],{},[367,655,656],{},[306,657,658],{},"Countable&Traversable",[367,660,661,651],{},[306,662,663],{},"allOf",[341,665,667],{"id":666},"arrays","Arrays",[346,669,670,678],{},[349,671,672],{},[352,673,674,676],{},[355,675,357],{},[355,677,360],{},[362,679,680,698,713,725,746,756,770,784],{},[352,681,682,693],{},[367,683,684,321,687,321,690],{},[306,685,686],{},"list\u003Cstring>",[306,688,689],{},"string[]",[306,691,692],{},"array\u003Cint, string>",[367,694,695],{},[306,696,697],{},"{\"type\": \"array\", \"items\": {\"type\": \"string\"}}",[352,699,700,705],{},[367,701,702],{},[306,703,704],{},"non-empty-list\u003Cint>",[367,706,707,392,710],{},[306,708,709],{},"array",[306,711,712],{},"minItems: 1",[352,714,715,720],{},[367,716,717],{},[306,718,719],{},"array\u003Cstring, int>",[367,721,722],{},[306,723,724],{},"{\"type\": \"object\", \"additionalProperties\": {\"type\": \"integer\"}}",[352,726,727,732],{},[367,728,729],{},[306,730,731],{},"array{id: int, name?: string}",[367,733,734,737,738,741,742,745],{},[306,735,736],{},"object"," with its properties, ",[306,739,740],{},"id"," required, ",[306,743,744],{},"name"," optional, no other key",[352,747,748,753],{},[367,749,750],{},[306,751,752],{},"array{id: int, ...}",[367,754,755],{},"the same, other keys allowed",[352,757,758,763],{},[367,759,760],{},[306,761,762],{},"list{int, string}",[367,764,765,392,767],{},[306,766,709],{},[306,768,769],{},"prefixItems",[352,771,772,779],{},[367,773,774,321,776],{},[306,775,709],{},[306,777,778],{},"iterable",[367,780,781],{},[306,782,783],{},"{\"type\": \"array\"}",[352,785,786,791],{},[367,787,788],{},[306,789,790],{},"Collection\u003Cint, string>",[367,792,793,794],{},"like ",[306,795,686],{},[341,797,799],{"id":798},"classes","Classes",[346,801,802,810],{},[349,803,804],{},[352,805,806,808],{},[355,807,357],{},[355,809,360],{},[362,811,812,823,839],{},[352,813,814,817],{},[367,815,816],{},"a backed enum",[367,818,819,820],{},"its values: ",[306,821,822],{},"{\"type\": \"string\", \"enum\": [...]}",[352,824,825,834],{},[367,826,827,321,830,833],{},[306,828,829],{},"DateTimeInterface",[306,831,832],{},"Carbon"," and other dates",[367,835,836],{},[306,837,838],{},"{\"type\": \"string\", \"format\": \"date-time\"}",[352,840,841,846],{},[367,842,843,844],{},"any other class, ",[306,845,736],{},[367,847,848],{},[306,849,850],{},"{\"type\": \"object\"}",[302,852,853,854,856,857,860,861,864],{},"A resource is never described from its type: it is run on a sample. In ",[306,855,334],{},", give it as ",[306,858,859],{},"resource:",", not as\n",[306,862,863],{},"type:",".",{"title":866,"searchDepth":867,"depth":867,"links":868},"",3,[869,871,872,873],{"id":343,"depth":870,"text":344},2,{"id":570,"depth":870,"text":571},{"id":666,"depth":870,"text":667},{"id":798,"depth":870,"text":799},"The PHPDoc types the generator reads in @return, in attributes and in @property, and the schema each one gives.","md",{},true,"---\ntitle: PHPDoc types\ndescription: The PHPDoc types the generator reads in @return, in attributes and in @property, and the schema each one gives.\n---\n\nTypes are read in the PHPDoc of the actions (`@return`), of the models (`@property`) and in the `type` parameters of\nthe attributes (`#[Response(type: …)]`, `#[RequestBody(type: …)]`, `#[QueryParameter(type: …)]`, `headers` of\n`#[Response]`…). They follow the syntax of PHPStan and Psalm. A class name is resolved with the `use` statements of the\nfile that holds the type.\n\n## Scalars\n\n| Type | Schema |\n| --- | --- |\n| `int` | `{\"type\": \"integer\"}` |\n| `positive-int`, `non-negative-int` | `integer` with `minimum` 1 or 0 |\n| `negative-int`, `non-positive-int` | `integer` with `maximum` -1 or 0 |\n| `int\u003C0, 10>` | `integer` with `minimum` 0 and `maximum` 10 |\n| `float`, `numeric` | `{\"type\": \"number\"}` |\n| `string`, `literal-string`, `lowercase-string`, `class-string` | `{\"type\": \"string\"}` |\n| `non-empty-string`, `non-falsy-string` | `string` with `minLength: 1` |\n| `numeric-string` | `string` with a pattern of a number |\n| `bool` | `{\"type\": \"boolean\"}` |\n| `true`, `false` | `boolean` with its `const` |\n| `null`, `void` | `{\"type\": \"null\"}` |\n| `mixed` | `{}` |\n| `array-key` | `anyOf` string and integer |\n\n## Literals and unions\n\n| Type | Schema |\n| --- | --- |\n| `'draft'\\|'published'` | `{\"type\": \"string\", \"enum\": [\"draft\", \"published\"]}` |\n| `'auto'\\|1\\|true` | `{\"enum\": [\"auto\", 1, true]}` |\n| `1` | `{\"type\": \"integer\", \"const\": 1}` |\n| `?int`, `int\\|null` | `{\"type\": [\"integer\", \"null\"]}` (written `nullable: true` in 3.0) |\n| `int\\|string` | `anyOf` of the two |\n| `Countable&Traversable` | `allOf` of the two |\n\n## Arrays\n\n| Type | Schema |\n| --- | --- |\n| `list\u003Cstring>`, `string[]`, `array\u003Cint, string>` | `{\"type\": \"array\", \"items\": {\"type\": \"string\"}}` |\n| `non-empty-list\u003Cint>` | `array` with `minItems: 1` |\n| `array\u003Cstring, int>` | `{\"type\": \"object\", \"additionalProperties\": {\"type\": \"integer\"}}` |\n| `array{id: int, name?: string}` | `object` with its properties, `id` required, `name` optional, no other key |\n| `array{id: int, ...}` | the same, other keys allowed |\n| `list{int, string}` | `array` with `prefixItems` |\n| `array`, `iterable` | `{\"type\": \"array\"}` |\n| `Collection\u003Cint, string>` | like `list\u003Cstring>` |\n\n## Classes\n\n| Type | Schema |\n| --- | --- |\n| a backed enum | its values: `{\"type\": \"string\", \"enum\": [...]}` |\n| `DateTimeInterface`, `Carbon` and other dates | `{\"type\": \"string\", \"format\": \"date-time\"}` |\n| any other class, `object` | `{\"type\": \"object\"}` |\n\nA resource is never described from its type: it is run on a sample. In `#[Response]`, give it as `resource:`, not as\n`type:`.\n",{"title":281,"description":874},"Cd8siKOuj8iIy3CNJgKfWJMu2pIz--8RPiY-VCsBQ8Y",[882,884],{"title":277,"path":278,"stem":279,"description":883,"children":-1},"Every validation rule the generator reads in a form request, and the schema or the condition it gives.",{"title":293,"path":294,"stem":295,"description":885,"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.",1795438903145]