[{"data":1,"prerenderedAt":912},["ShallowReactive",2],{"libs":3,"navigation-laravel-api-revisions":115,"\u002Flaravel-api-revisions\u002Freference\u002Fcheck-diagnostics":299,"\u002Flaravel-api-revisions\u002Freference\u002Fcheck-diagnostics-surround":907},[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,153,175,205,235,257,287],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Flaravel-api-revisions\u002Fgetting-started","laravel-api-revisions\u002F1.getting-started",[124,127,131],{"title":125,"path":66,"stem":126,"since":118,"experimental":119},"Introduction","laravel-api-revisions\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Flaravel-api-revisions\u002Fgetting-started\u002Finstallation","laravel-api-revisions\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Flaravel-api-revisions\u002Fgetting-started\u002Fquick-start","laravel-api-revisions\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Revisions","i-lucide-calendar-clock","\u002Flaravel-api-revisions\u002Frevisions","laravel-api-revisions\u002F2.revisions",[141,145,149],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"The revision enum","\u002Flaravel-api-revisions\u002Frevisions\u002Fthe-revision-enum","laravel-api-revisions\u002F2.revisions\u002F1.the-revision-enum",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Resolving the revision","\u002Flaravel-api-revisions\u002Frevisions\u002Fresolving-the-revision","laravel-api-revisions\u002F2.revisions\u002F2.resolving-the-revision",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Outside HTTP","\u002Flaravel-api-revisions\u002Frevisions\u002Foutside-http","laravel-api-revisions\u002F2.revisions\u002F3.outside-http",{"title":154,"since":118,"experimental":119,"icon":155,"path":156,"stem":157,"children":158,"page":119},"Declaring the head","i-lucide-file-code","\u002Flaravel-api-revisions\u002Fdeclaring-the-head","laravel-api-revisions\u002F3.declaring-the-head",[159,163,167,171],{"title":160,"path":161,"stem":162,"since":118,"experimental":119},"Schema vocabulary","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fschema-vocabulary","laravel-api-revisions\u002F3.declaring-the-head\u002F1.schema-vocabulary",{"title":164,"path":165,"stem":166,"since":118,"experimental":119},"Sources and conditions","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fsources-and-conditions","laravel-api-revisions\u002F3.declaring-the-head\u002F2.sources-and-conditions",{"title":168,"path":169,"stem":170,"since":118,"experimental":119},"Responses","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Fresponses","laravel-api-revisions\u002F3.declaring-the-head\u002F3.responses",{"title":172,"path":173,"stem":174,"since":118,"experimental":119},"Requests","\u002Flaravel-api-revisions\u002Fdeclaring-the-head\u002Frequests","laravel-api-revisions\u002F3.declaring-the-head\u002F4.requests",{"title":176,"since":118,"experimental":119,"icon":177,"path":178,"stem":179,"children":180,"page":119},"Evolving the API","i-lucide-history","\u002Flaravel-api-revisions\u002Fevolving-the-api","laravel-api-revisions\u002F4.evolving-the-api",[181,185,189,193,197,201],{"title":182,"path":183,"stem":184,"since":118,"experimental":119},"Adding a revision","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fadding-a-revision","laravel-api-revisions\u002F4.evolving-the-api\u002F1.adding-a-revision",{"title":186,"path":187,"stem":188,"since":118,"experimental":119},"Adding and removing fields","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fadding-and-removing","laravel-api-revisions\u002F4.evolving-the-api\u002F2.adding-and-removing",{"title":190,"path":191,"stem":192,"since":118,"experimental":119},"Renaming and retyping","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Frenaming-and-retyping","laravel-api-revisions\u002F4.evolving-the-api\u002F3.renaming-and-retyping",{"title":194,"path":195,"stem":196,"since":118,"experimental":119},"Conversions","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fconversions","laravel-api-revisions\u002F4.evolving-the-api\u002F4.conversions",{"title":198,"path":199,"stem":200,"since":118,"experimental":119},"Class lifetime","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fclass-lifetime","laravel-api-revisions\u002F4.evolving-the-api\u002F5.class-lifetime",{"title":202,"path":203,"stem":204,"since":118,"experimental":119},"Retiring a revision","\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fretiring-a-revision","laravel-api-revisions\u002F4.evolving-the-api\u002F6.retiring-a-revision",{"title":206,"since":118,"experimental":119,"icon":207,"path":208,"stem":209,"children":210,"page":119},"Tooling","i-lucide-wrench","\u002Flaravel-api-revisions\u002Ftooling","laravel-api-revisions\u002F5.tooling",[211,215,219,223,227,231],{"title":212,"path":213,"stem":214,"since":118,"experimental":119},"Check","\u002Flaravel-api-revisions\u002Ftooling\u002Fcheck","laravel-api-revisions\u002F5.tooling\u002F1.check",{"title":216,"path":217,"stem":218,"since":118,"experimental":119},"Lock","\u002Flaravel-api-revisions\u002Ftooling\u002Flock","laravel-api-revisions\u002F5.tooling\u002F2.lock",{"title":220,"path":221,"stem":222,"since":118,"experimental":119},"Export and changelog","\u002Flaravel-api-revisions\u002Ftooling\u002Fexport-and-changelog","laravel-api-revisions\u002F5.tooling\u002F3.export-and-changelog",{"title":224,"path":225,"stem":226,"since":118,"experimental":119},"Testing","\u002Flaravel-api-revisions\u002Ftooling\u002Ftesting","laravel-api-revisions\u002F5.tooling\u002F4.testing",{"title":228,"path":229,"stem":230,"since":118,"experimental":119},"Static analysis","\u002Flaravel-api-revisions\u002Ftooling\u002Fstatic-analysis","laravel-api-revisions\u002F5.tooling\u002F5.static-analysis",{"title":232,"path":233,"stem":234,"since":118,"experimental":119},"Performance and Octane","\u002Flaravel-api-revisions\u002Ftooling\u002Fperformance-and-octane","laravel-api-revisions\u002F5.tooling\u002F6.performance-and-octane",{"title":236,"since":118,"experimental":119,"icon":237,"path":238,"stem":239,"children":240,"page":119},"Extending","i-lucide-puzzle","\u002Flaravel-api-revisions\u002Fextending","laravel-api-revisions\u002F6.extending",[241,245,249,253],{"title":242,"path":243,"stem":244,"since":118,"experimental":119},"Custom types","\u002Flaravel-api-revisions\u002Fextending\u002Fcustom-types","laravel-api-revisions\u002F6.extending\u002F1.custom-types",{"title":246,"path":247,"stem":248,"since":118,"experimental":119},"Descriptor macros","\u002Flaravel-api-revisions\u002Fextending\u002Fdescriptor-macros","laravel-api-revisions\u002F6.extending\u002F2.descriptor-macros",{"title":250,"path":251,"stem":252,"since":118,"experimental":119},"Custom checks","\u002Flaravel-api-revisions\u002Fextending\u002Fcustom-checks","laravel-api-revisions\u002F6.extending\u002F3.custom-checks",{"title":254,"path":255,"stem":256,"since":118,"experimental":119},"Without Laravel","\u002Flaravel-api-revisions\u002Fextending\u002Fwithout-laravel","laravel-api-revisions\u002F6.extending\u002F4.without-laravel",{"title":258,"since":118,"experimental":119,"icon":259,"path":260,"stem":261,"children":262,"page":119},"Reference","i-lucide-book-open","\u002Flaravel-api-revisions\u002Freference","laravel-api-revisions\u002F7.reference",[263,267,271,275,279,283],{"title":264,"path":265,"stem":266,"since":118,"experimental":119},"Configuration","\u002Flaravel-api-revisions\u002Freference\u002Fconfiguration","laravel-api-revisions\u002F7.reference\u002F1.configuration",{"title":268,"path":269,"stem":270,"since":118,"experimental":119},"Schema helpers","\u002Flaravel-api-revisions\u002Freference\u002Fschema-helpers","laravel-api-revisions\u002F7.reference\u002F2.schema-helpers",{"title":272,"path":273,"stem":274,"since":118,"experimental":119},"Revision methods","\u002Flaravel-api-revisions\u002Freference\u002Frevision-methods","laravel-api-revisions\u002F7.reference\u002F3.revision-methods",{"title":276,"path":277,"stem":278,"since":118,"experimental":119},"Commands","\u002Flaravel-api-revisions\u002Freference\u002Fcommands","laravel-api-revisions\u002F7.reference\u002F4.commands",{"title":280,"path":281,"stem":282,"since":118,"experimental":119},"Check diagnostics","\u002Flaravel-api-revisions\u002Freference\u002Fcheck-diagnostics","laravel-api-revisions\u002F7.reference\u002F5.check-diagnostics",{"title":284,"path":285,"stem":286,"since":118,"experimental":119},"Exceptions","\u002Flaravel-api-revisions\u002Freference\u002Fexceptions","laravel-api-revisions\u002F7.reference\u002F6.exceptions",{"title":288,"path":289,"children":290},"Releases","\u002Flaravel-api-revisions\u002Freleases",[291,295],{"title":292,"path":293,"stem":294,"since":118,"experimental":119},"Upgrade guide","\u002Flaravel-api-revisions\u002Fupgrade","laravel-api-revisions\u002FUPGRADE",{"title":296,"path":297,"stem":298,"since":118,"experimental":119},"Changelog","\u002Flaravel-api-revisions\u002Fchangelog","laravel-api-revisions\u002FCHANGELOG",{"id":300,"title":280,"body":301,"description":900,"experimental":119,"extension":901,"links":118,"meta":902,"navigation":903,"path":281,"rawbody":904,"seo":905,"since":118,"stem":282,"__hash__":906},"laravel_api_revisions\u002Flaravel-api-revisions\u002F7.reference\u002F5.check-diagnostics.md",{"type":302,"value":303,"toc":889},"minimark",[304,317,322,384,388,539,543,643,647,754,758,827,830,883],[305,306,307,308,312,313,316],"p",{},"Errors fail ",[309,310,311],"code",{},"revision:check"," and ",[309,314,315],{},"assertRevisionsAreConsistent()","; warnings do not.",[318,319,321],"h2",{"id":320},"the-enum","The enum",[323,324,325,344],"table",{},[326,327,328],"thead",{},[329,330,331,335,338,341],"tr",{},[332,333,334],"th",{},"Code",[332,336,337],{},"Severity",[332,339,340],{},"Cause",[332,342,343],{},"Fix",[345,346,347,367],"tbody",{},[329,348,349,355,358,364],{},[350,351,352],"td",{},[309,353,354],{},"order-missing-case",[350,356,357],{},"error",[350,359,360,361],{},"a case is missing from ",[309,362,363],{},"order()",[350,365,366],{},"add it, at the end if it is new",[329,368,369,374,376,381],{},[350,370,371],{},[309,372,373],{},"order-duplicate-case",[350,375,357],{},[350,377,378,379],{},"a case appears twice in ",[309,380,363],{},[350,382,383],{},"remove the duplicate",[318,385,387],{"id":386},"bounds-and-history","Bounds and history",[323,389,390,402],{},[326,391,392],{},[329,393,394,396,398,400],{},[332,395,334],{},[332,397,337],{},[332,399,340],{},[332,401,343],{},[345,403,404,425,443,460,481,506,523],{},[329,405,406,411,413,422],{},[350,407,408],{},[309,409,410],{},"lifetime-inverted",[350,412,357],{},[350,414,415,418,419],{},[309,416,417],{},"until()"," before ",[309,420,421],{},"since()",[350,423,424],{},"swap or correct the bounds",[329,426,427,432,434,440],{},[350,428,429],{},[309,430,431],{},"since-older-than-group",[350,433,357],{},[350,435,436,437,439],{},"a member's ",[309,438,421],{}," is older than its group's",[350,441,442],{},"give a newer bound, or move the field out of the group",[329,444,445,450,452,457],{},[350,446,447],{},[309,448,449],{},"until-newer-than-group",[350,451,357],{},[350,453,436,454,456],{},[309,455,417],{}," is newer than its group's",[350,458,459],{},"give an older bound, or move the field out of the group",[329,461,462,467,470,478],{},[350,463,464],{},[309,465,466],{},"bound-repeated",[350,468,469],{},"warning",[350,471,472,474,475,477],{},[309,473,421],{}," or ",[309,476,417],{}," called twice",[350,479,480],{},"keep one",[329,482,483,488,490,497],{},[350,484,485],{},[309,486,487],{},"history-unordered",[350,489,357],{},[350,491,492,493,496],{},"a ",[309,494,495],{},"was()"," repeated, or on the head",[350,498,499,500,502,503],{},"one ",[309,501,495],{}," per revision, never on the head: write ",[309,504,505],{},"was(N->previous())",[329,507,508,513,515,520],{},[350,509,510],{},[309,511,512],{},"history-before-since",[350,514,357],{},[350,516,492,517,519],{},[309,518,495],{}," before the field exists",[350,521,522],{},"delete it",[329,524,525,530,532,537],{},[350,526,527],{},[309,528,529],{},"history-after-until",[350,531,357],{},[350,533,492,534,536],{},[309,535,495],{}," after the field is removed",[350,538,522],{},[318,540,542],{"id":541},"conversions-and-requests","Conversions and requests",[323,544,545,557],{},[326,546,547],{},[329,548,549,551,553,555],{},[332,550,334],{},[332,552,337],{},[332,554,340],{},[332,556,343],{},[345,558,559,582,597,628],{},[329,560,561,566,568,571],{},[350,562,563],{},[309,564,565],{},"conversion-missing",[350,567,357],{},[350,569,570],{},"a type change neither automatic nor given",[350,572,573,574,577,578,581],{},"give ",[309,575,576],{},"down:"," (responses) or ",[309,579,580],{},"up:"," (requests)",[329,583,584,589,591,594],{},[350,585,586],{},[309,587,588],{},"conversion-lossy",[350,590,469],{},[350,592,593],{},"a lossy automatic conversion without closure",[350,595,596],{},"give the closure, if the cast is not what clients need",[329,598,599,604,606,615],{},[350,600,601],{},[309,602,603],{},"required-since-without-default",[350,605,357],{},[350,607,492,608,611,612],{},[309,609,610],{},"required()->since(R)"," without ",[309,613,614],{},"default:",[350,616,617,618,620,621,624,625],{},"add ",[309,619,614],{},", or set ",[309,622,623],{},"missing_default"," to ",[309,626,627],{},"'null'",[329,629,630,635,637,640],{},[350,631,632],{},[309,633,634],{},"name-collision",[350,636,357],{},[350,638,639],{},"two fields under one name at a revision",[350,641,642],{},"rename one, or bound them so they never coexist",[318,644,646],{"id":645},"resources","Resources",[323,648,649,661],{},[326,650,651],{},[329,652,653,655,657,659],{},[332,654,334],{},[332,656,337],{},[332,658,340],{},[332,660,343],{},[345,662,663,682,711,732],{},[329,664,665,670,672,679],{},[350,666,667],{},[309,668,669],{},"eager-value",[350,671,357],{},[350,673,674,675,678],{},"a plain value in a resource (",[309,676,677],{},"'x' => $this->x",")",[350,680,681],{},"wrap it in a descriptor",[329,683,684,689,691,701],{},[350,685,686],{},[309,687,688],{},"native-condition",[350,690,469],{},[350,692,693,696,697,700],{},[309,694,695],{},"$this->when()",", ",[309,698,699],{},"mergeWhen()","… in a resource",[350,702,703,704,696,707,710],{},"use ",[309,705,706],{},"->when()",[309,708,709],{},"->whenLoaded()"," on the descriptor",[329,712,713,718,720,726],{},[350,714,715],{},[309,716,717],{},"unknown-resource",[350,719,357],{},[350,721,722,725],{},[309,723,724],{},"Schema::resource()"," on a class that cannot be nested",[350,727,728,729],{},"nest a class implementing ",[309,730,731],{},"Revisioned",[329,733,734,739,741,747],{},[350,735,736],{},[309,737,738],{},"resource-absent",[350,740,357],{},[350,742,743,744,746],{},"a visible ",[309,745,724],{}," field nesting a class absent at its revision",[350,748,749,750],{},"give the field the bounds of the ",[751,752,753],"a",{"href":199},"class lifetime",[318,755,757],{"id":756},"export","Export",[323,759,760,772],{},[326,761,762],{},[329,763,764,766,768,770],{},[332,765,334],{},[332,767,337],{},[332,769,340],{},[332,771,343],{},[345,773,774,793,808],{},[329,775,776,781,783,786],{},[350,777,778],{},[309,779,780],{},"component-conflict",[350,782,357],{},[350,784,785],{},"one component name, two bodies",[350,787,788,789,792],{},"give each body its own ",[309,790,791],{},"component()"," name",[329,794,795,800,802,805],{},[350,796,797],{},[309,798,799],{},"schema-override",[350,801,469],{},[350,803,804],{},"a rule's JSON Schema overrides the field's type",[350,806,807],{},"change the rule, or the field's type",[329,809,810,815,817,820],{},[350,811,812],{},[309,813,814],{},"definition-error",[350,816,357],{},[350,818,819],{},"a declaration throws",[350,821,822,823,826],{},"read the message: a ",[309,824,825],{},"DefinitionException"," names the mistake",[318,828,216],{"id":829},"lock",[323,831,832,844],{},[326,833,834],{},[329,835,836,838,840,842],{},[332,837,334],{},[332,839,337],{},[332,841,340],{},[332,843,343],{},[345,845,846,864],{},[329,847,848,853,855,858],{},[350,849,850],{},[309,851,852],{},"lock-mismatch",[350,854,357],{},[350,856,857],{},"a locked revision changed: a field, a type, a class gone",[350,859,860,861,863],{},"usually a forgotten ",[309,862,421],{},"; re-lock only if the change is meant for published clients",[329,865,866,871,873,878],{},[350,867,868],{},[309,869,870],{},"lock-order-changed",[350,872,357],{},[350,874,875,876],{},"a locked revision moved in ",[309,877,363],{},[350,879,880,881],{},"restore ",[309,882,363],{},[305,884,885,886,888],{},"Packages and applications add their own codes: see ",[751,887,250],{"href":251},".",{"title":890,"searchDepth":891,"depth":891,"links":892},"",3,[893,895,896,897,898,899],{"id":320,"depth":894,"text":321},2,{"id":386,"depth":894,"text":387},{"id":541,"depth":894,"text":542},{"id":645,"depth":894,"text":646},{"id":756,"depth":894,"text":757},{"id":829,"depth":894,"text":216},"Every code revision:check reports, its severity, its cause and its fix.","md",{},true,"---\ntitle: Check diagnostics\ndescription: Every code revision:check reports, its severity, its cause and its fix.\n---\n\nErrors fail `revision:check` and `assertRevisionsAreConsistent()`; warnings do not.\n\n## The enum\n\n| Code | Severity | Cause | Fix |\n| --- | --- | --- | --- |\n| `order-missing-case` | error | a case is missing from `order()` | add it, at the end if it is new |\n| `order-duplicate-case` | error | a case appears twice in `order()` | remove the duplicate |\n\n## Bounds and history\n\n| Code | Severity | Cause | Fix |\n| --- | --- | --- | --- |\n| `lifetime-inverted` | error | `until()` before `since()` | swap or correct the bounds |\n| `since-older-than-group` | error | a member's `since()` is older than its group's | give a newer bound, or move the field out of the group |\n| `until-newer-than-group` | error | a member's `until()` is newer than its group's | give an older bound, or move the field out of the group |\n| `bound-repeated` | warning | `since()` or `until()` called twice | keep one |\n| `history-unordered` | error | a `was()` repeated, or on the head | one `was()` per revision, never on the head: write `was(N->previous())` |\n| `history-before-since` | error | a `was()` before the field exists | delete it |\n| `history-after-until` | error | a `was()` after the field is removed | delete it |\n\n## Conversions and requests\n\n| Code | Severity | Cause | Fix |\n| --- | --- | --- | --- |\n| `conversion-missing` | error | a type change neither automatic nor given | give `down:` (responses) or `up:` (requests) |\n| `conversion-lossy` | warning | a lossy automatic conversion without closure | give the closure, if the cast is not what clients need |\n| `required-since-without-default` | error | a `required()->since(R)` without `default:` | add `default:`, or set `missing_default` to `'null'` |\n| `name-collision` | error | two fields under one name at a revision | rename one, or bound them so they never coexist |\n\n## Resources\n\n| Code | Severity | Cause | Fix |\n| --- | --- | --- | --- |\n| `eager-value` | error | a plain value in a resource (`'x' => $this->x`) | wrap it in a descriptor |\n| `native-condition` | warning | `$this->when()`, `mergeWhen()`… in a resource | use `->when()`, `->whenLoaded()` on the descriptor |\n| `unknown-resource` | error | `Schema::resource()` on a class that cannot be nested | nest a class implementing `Revisioned` |\n| `resource-absent` | error | a visible `Schema::resource()` field nesting a class absent at its revision | give the field the bounds of the [class lifetime](\u002Flaravel-api-revisions\u002Fevolving-the-api\u002Fclass-lifetime) |\n\n## Export\n\n| Code | Severity | Cause | Fix |\n| --- | --- | --- | --- |\n| `component-conflict` | error | one component name, two bodies | give each body its own `component()` name |\n| `schema-override` | warning | a rule's JSON Schema overrides the field's type | change the rule, or the field's type |\n| `definition-error` | error | a declaration throws | read the message: a `DefinitionException` names the mistake |\n\n## Lock\n\n| Code | Severity | Cause | Fix |\n| --- | --- | --- | --- |\n| `lock-mismatch` | error | a locked revision changed: a field, a type, a class gone | usually a forgotten `since()`; re-lock only if the change is meant for published clients |\n| `lock-order-changed` | error | a locked revision moved in `order()` | restore `order()` |\n\nPackages and applications add their own codes: see [Custom checks](\u002Flaravel-api-revisions\u002Fextending\u002Fcustom-checks).\n",{"title":280,"description":900},"YKOgc_817rhnzs6oU8d1ZBpTXTIh83M-l9_Y5sQxgfE",[908,910],{"title":276,"path":277,"stem":278,"description":909,"children":-1},"Every Artisan command of the package and its options.",{"title":284,"path":285,"stem":286,"description":911,"children":-1},"Every exception the package throws, and when.",1795438905969]