[{"data":1,"prerenderedAt":694},["ShallowReactive",2],{"libs":3,"navigation-laravel-json-api":115,"\u002Flaravel-json-api\u002Freference\u002Fdiagnostics":294,"\u002Flaravel-json-api\u002Freference\u002Fdiagnostics-surround":689},[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,165,187,216,234,248,282],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Flaravel-json-api\u002Fgetting-started","laravel-json-api\u002F1.getting-started",[124,127,131],{"title":125,"path":42,"stem":126,"since":118,"experimental":119},"Introduction","laravel-json-api\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Flaravel-json-api\u002Fgetting-started\u002Finstallation","laravel-json-api\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Flaravel-json-api\u002Fgetting-started\u002Fquick-start","laravel-json-api\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Resources","i-lucide-box","\u002Flaravel-json-api\u002Fresources","laravel-json-api\u002F2.resources",[141,145,149,153,157,161],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"Anatomy of a resource","\u002Flaravel-json-api\u002Fresources\u002Fanatomy","laravel-json-api\u002F2.resources\u002F1.anatomy",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Attributes & values","\u002Flaravel-json-api\u002Fresources\u002Fattributes","laravel-json-api\u002F2.resources\u002F2.attributes",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Conditions","\u002Flaravel-json-api\u002Fresources\u002Fconditions","laravel-json-api\u002F2.resources\u002F3.conditions",{"title":154,"path":155,"stem":156,"since":118,"experimental":119},"Relationships","\u002Flaravel-json-api\u002Fresources\u002Frelationships","laravel-json-api\u002F2.resources\u002F4.relationships",{"title":158,"path":159,"stem":160,"since":118,"experimental":119},"Links & meta","\u002Flaravel-json-api\u002Fresources\u002Flinks-and-meta","laravel-json-api\u002F2.resources\u002F5.links-and-meta",{"title":162,"path":163,"stem":164,"since":118,"experimental":119},"Collections & pagination","\u002Flaravel-json-api\u002Fresources\u002Fcollections","laravel-json-api\u002F2.resources\u002F6.collections",{"title":166,"since":118,"experimental":119,"icon":167,"path":168,"stem":169,"children":170,"page":119},"Requests","i-lucide-arrow-down-up","\u002Flaravel-json-api\u002Frequests","laravel-json-api\u002F3.requests",[171,175,179,183],{"title":172,"path":173,"stem":174,"since":118,"experimental":119},"Includes & sparse fieldsets","\u002Flaravel-json-api\u002Frequests\u002Fincludes-and-fieldsets","laravel-json-api\u002F3.requests\u002F1.includes-and-fieldsets",{"title":176,"path":177,"stem":178,"since":118,"experimental":119},"Validating requests","\u002Flaravel-json-api\u002Frequests\u002Fvalidation","laravel-json-api\u002F3.requests\u002F2.validation",{"title":180,"path":181,"stem":182,"since":118,"experimental":119},"Write requests","\u002Flaravel-json-api\u002Frequests\u002Fwrite-requests","laravel-json-api\u002F3.requests\u002F3.write-requests",{"title":184,"path":185,"stem":186,"since":118,"experimental":119},"Errors & content negotiation","\u002Flaravel-json-api\u002Frequests\u002Ferrors","laravel-json-api\u002F3.requests\u002F4.errors",{"title":188,"since":118,"experimental":119,"icon":50,"path":189,"stem":190,"children":191,"page":119},"API revisions","\u002Flaravel-json-api\u002Frevisions","laravel-json-api\u002F4.revisions",[192,196,200,204,208,212],{"title":193,"path":194,"stem":195,"since":118,"experimental":119},"Overview & declaring revisions","\u002Flaravel-json-api\u002Frevisions\u002Foverview","laravel-json-api\u002F4.revisions\u002F1.overview",{"title":197,"path":198,"stem":199,"since":118,"experimental":119},"Changing a field","\u002Flaravel-json-api\u002Frevisions\u002Fchanging-a-field","laravel-json-api\u002F4.revisions\u002F2.changing-a-field",{"title":201,"path":202,"stem":203,"since":118,"experimental":119},"Adding, removing, new types","\u002Flaravel-json-api\u002Frevisions\u002Fadding-and-removing","laravel-json-api\u002F4.revisions\u002F3.adding-and-removing",{"title":205,"path":206,"stem":207,"since":118,"experimental":119},"Guards","\u002Flaravel-json-api\u002Frevisions\u002Fguards","laravel-json-api\u002F4.revisions\u002F4.guards",{"title":209,"path":210,"stem":211,"since":118,"experimental":119},"Write requests across revisions","\u002Flaravel-json-api\u002Frevisions\u002Fwrite-requests","laravel-json-api\u002F4.revisions\u002F5.write-requests",{"title":213,"path":214,"stem":215,"since":118,"experimental":119},"Checking & retiring a revision","\u002Flaravel-json-api\u002Frevisions\u002Fchecking-and-retiring","laravel-json-api\u002F4.revisions\u002F6.checking-and-retiring",{"title":217,"since":118,"experimental":119,"icon":218,"path":219,"stem":220,"children":221,"page":119},"Tooling","i-lucide-wrench","\u002Flaravel-json-api\u002Ftooling","laravel-json-api\u002F5.tooling",[222,226,230],{"title":223,"path":224,"stem":225,"since":118,"experimental":119},"Checking resources","\u002Flaravel-json-api\u002Ftooling\u002Fchecking-resources","laravel-json-api\u002F5.tooling\u002F1.checking-resources",{"title":227,"path":228,"stem":229,"since":118,"experimental":119},"Static analysis","\u002Flaravel-json-api\u002Ftooling\u002Fstatic-analysis","laravel-json-api\u002F5.tooling\u002F2.static-analysis",{"title":231,"path":232,"stem":233,"since":118,"experimental":119},"Deployment","\u002Flaravel-json-api\u002Ftooling\u002Fdeployment","laravel-json-api\u002F5.tooling\u002F3.deployment",{"title":235,"since":118,"experimental":119,"icon":236,"path":237,"stem":238,"children":239,"page":119},"Integrations","i-lucide-plug","\u002Flaravel-json-api\u002Fintegrations","laravel-json-api\u002F6.integrations",[240,244],{"title":241,"path":242,"stem":243,"since":118,"experimental":119},"Laravel's native JSON:API","\u002Flaravel-json-api\u002Fintegrations\u002Fnative-json-api","laravel-json-api\u002F6.integrations\u002F1.native-json-api",{"title":245,"path":246,"stem":247,"since":118,"experimental":119},"OpenAPI","\u002Flaravel-json-api\u002Fintegrations\u002Fopenapi","laravel-json-api\u002F6.integrations\u002F2.openapi",{"title":249,"since":118,"experimental":119,"icon":250,"path":251,"stem":252,"children":253,"page":119},"Reference","i-lucide-library","\u002Flaravel-json-api\u002Freference","laravel-json-api\u002F7.reference",[254,258,262,266,270,274,278],{"title":255,"path":256,"stem":257,"since":118,"experimental":119},"Configuration","\u002Flaravel-json-api\u002Freference\u002Fconfiguration","laravel-json-api\u002F7.reference\u002F1.configuration",{"title":259,"path":260,"stem":261,"since":118,"experimental":119},"Value helpers","\u002Flaravel-json-api\u002Freference\u002Fvalue-helpers","laravel-json-api\u002F7.reference\u002F2.value-helpers",{"title":263,"path":264,"stem":265,"since":118,"experimental":119},"Relation helpers","\u002Flaravel-json-api\u002Freference\u002Frelation-helpers","laravel-json-api\u002F7.reference\u002F3.relation-helpers",{"title":267,"path":268,"stem":269,"since":118,"experimental":119},"PHP attributes","\u002Flaravel-json-api\u002Freference\u002Fphp-attributes","laravel-json-api\u002F7.reference\u002F4.php-attributes",{"title":271,"path":272,"stem":273,"since":118,"experimental":119},"Commands","\u002Flaravel-json-api\u002Freference\u002Fcommands","laravel-json-api\u002F7.reference\u002F5.commands",{"title":275,"path":276,"stem":277,"since":118,"experimental":119},"Diagnostics","\u002Flaravel-json-api\u002Freference\u002Fdiagnostics","laravel-json-api\u002F7.reference\u002F6.diagnostics",{"title":279,"path":280,"stem":281,"since":118,"experimental":119},"Extension points","\u002Flaravel-json-api\u002Freference\u002Fextension-points","laravel-json-api\u002F7.reference\u002F7.extension-points",{"title":283,"path":284,"children":285},"Releases","\u002Flaravel-json-api\u002Freleases",[286,290],{"title":287,"path":288,"stem":289,"since":118,"experimental":119},"Upgrade guide","\u002Flaravel-json-api\u002Fupgrade","laravel-json-api\u002FUPGRADE",{"title":291,"path":292,"stem":293,"since":118,"experimental":119},"Changelog","\u002Flaravel-json-api\u002Fchangelog","laravel-json-api\u002FCHANGELOG",{"id":295,"title":275,"body":296,"description":682,"experimental":119,"extension":683,"links":118,"meta":684,"navigation":685,"path":276,"rawbody":686,"seo":687,"since":118,"stem":277,"__hash__":688},"laravel_json_api\u002Flaravel-json-api\u002F7.reference\u002F6.diagnostics.md",{"type":297,"value":298,"toc":676},"minimark",[299,328,507,518,523],[300,301,302,303,306,307,310,311,315,316,319,320,323,324,327],"p",{},"Found when a definition is compiled or by the check of ",[304,305,59],"code",{}," (whose own codes, such as\n",[304,308,309],{},"conversion-missing",", are documented there). An ",[312,313,314],"strong",{},"error"," fails the check; a ",[312,317,318],{},"warning"," fails it with ",[304,321,322],{},"--strict"," \u002F\n",[304,325,326],{},"strict: true",".",[329,330,331,347],"table",{},[332,333,334],"thead",{},[335,336,337,341,344],"tr",{},[338,339,340],"th",{},"Code",[338,342,343],{},"Level",[338,345,346],{},"Cause and fix",[348,349,350,370,385,397,417,436,456,476,492],"tbody",{},[335,351,352,358,360],{},[353,354,355],"td",{},[304,356,357],{},"definition-error",[353,359,314],{},[353,361,362,363,366,367],{},"The values cannot be compiled: a plain value or a member without name in a hook, a hook throwing on the probe (an ",[304,364,365],{},"if"," on the model, a call on a relation), a relationship to a class that is not a resource, an invalid history. Rendering throws a ",[304,368,369],{},"DefinitionException",[335,371,372,377,379],{},[353,373,374],{},[304,375,376],{},"hook-failure",[353,378,314],{},[353,380,381,384],{},[304,382,383],{},"toLinks()"," threw on the probe, or holds a descriptor",[335,386,387,392,394],{},[353,388,389],{},[304,390,391],{},"invalid-resource",[353,393,314],{},[353,395,396],{},"The class is not a resource, its type cannot be read, or it exists at no revision",[335,398,399,404,406],{},[353,400,401],{},[304,402,403],{},"jsonapi-reserved-name",[353,405,314],{},[353,407,408,409,412,413,416],{},"An attribute or a relationship named ",[304,410,411],{},"id"," or ",[304,414,415],{},"type"," at the revision",[335,418,419,424,426],{},[353,420,421],{},[304,422,423],{},"jsonapi-name-collision",[353,425,314],{},[353,427,428,429,432,433],{},"An attribute and a relationship with one name at the revision: bound them with ",[304,430,431],{},"until()"," \u002F ",[304,434,435],{},"since()",[335,437,438,443,445],{},[353,439,440],{},[304,441,442],{},"jsonapi-absent-resource",[353,444,314],{},[353,446,447,448,451,452,455],{},"A relationship reaches, at the revision, a resource absent from it (",[304,449,450],{},"#[JsonApiSince]"," without ",[304,453,454],{},"was()"," for older revisions)",[335,457,458,463,465],{},[353,459,460],{},[304,461,462],{},"missing-route",[353,464,314],{},[353,466,467,468,471,472,475],{},"The ",[304,469,470],{},"self"," route of ",[304,473,474],{},"#[JsonApiRoutes]"," does not exist",[335,477,478,483,485],{},[353,479,480],{},[304,481,482],{},"load-conflict",[353,484,318],{},[353,486,487,488,491],{},"Two relationships load the same relation with different ",[304,489,490],{},"withLoad()"," constraints",[335,493,494,499,501],{},[353,495,496],{},[304,497,498],{},"filter-on-unloaded",[353,500,318],{},[353,502,503,506],{},[304,504,505],{},"->filters()"," on a relation that is not loaded, read resource by resource: let it load",[300,508,509,511,512,514,515,327],{},[304,510,482],{}," and ",[304,513,498],{}," are found while rendering too, in debug only, in the diagnostics of the\n",[304,516,517],{},"JsonApiContext",[519,520,522],"h2",{"id":521},"when-the-document-is-wrong","When the document is wrong",[329,524,525,534],{},[332,526,527],{},[335,528,529,532],{},[338,530,531],{},"Symptom",[338,533,346],{},[348,535,536,556,579,606,621,642,655,665],{},[335,537,538,541],{},[353,539,540],{},"A member is missing",[353,542,543,544,547,548,551,552,555],{},"Left out by ",[304,545,546],{},"fields[type]",", by its condition, or empty (",[304,549,550],{},"attributes",", ",[304,553,554],{},"meta","… are left out when empty)",[335,557,558,567],{},[353,559,560,432,563,566],{},[304,561,562],{},"fields",[304,564,565],{},"include"," rejected for a member that exists",[353,568,569,570,572,573,412,576],{},"It is added under an ",[304,571,365],{},": use ",[304,574,575],{},"->when()",[304,577,578],{},"applyWhen()",[335,580,581,587],{},[353,582,583,586],{},[304,584,585],{},"data"," missing on a relationship",[353,588,589,592,593,412,596,599,600,432,603],{},[304,590,591],{},"relationship.linkage"," is ",[304,594,595],{},"included",[304,597,598],{},"loaded",", or the relationship has ",[304,601,602],{},"->whenIncluded()",[304,604,605],{},"->whenLoaded()",[335,607,608,611],{},[353,609,610],{},"One query per resource",[353,612,613,614,617,618],{},"The relationship is read by a closure: use ",[304,615,616],{},"$this->many(PostResource::class)",", or ",[304,619,620],{},"->withLoad('posts')",[335,622,623,626],{},[353,624,625],{},"A value has the wrong type",[353,627,628,629,551,632,551,635,551,638,641],{},"Use the matching descriptor (",[304,630,631],{},"integer()",[304,633,634],{},"datetime()",[304,636,637],{},"decimal()",[304,639,640],{},"enum()","…)",[335,643,644,647],{},[353,645,646],{},"A date lost its time",[353,648,649,652,653],{},[304,650,651],{},"date()"," is a date without time: use ",[304,654,634],{},[335,656,657,662],{},[353,658,659],{},[304,660,661],{},"RenderingException",[353,663,664],{},"The identifier is neither an integer nor a string, or the resource does not exist at the revision",[335,666,667,670],{},[353,668,669],{},"The error body is Laravel's",[353,671,672,675],{},[304,673,674],{},"JsonApi::renderErrors()"," is not called, or the request does not expect JSON",{"title":677,"searchDepth":678,"depth":678,"links":679},"",3,[680],{"id":521,"depth":681,"text":522},2,"The findings of jsonapi:check and ResourceAssertions, and how to fix them.","md",{},true,"---\ntitle: Diagnostics\ndescription: The findings of jsonapi:check and ResourceAssertions, and how to fix them.\n---\n\nFound when a definition is compiled or by the check of `ark4ne\u002Flaravel-api-revisions` (whose own codes, such as\n`conversion-missing`, are documented there). An **error** fails the check; a **warning** fails it with `--strict` \u002F\n`strict: true`.\n\n| Code | Level | Cause and fix |\n| --- | --- | --- |\n| `definition-error` | error | The values cannot be compiled: a plain value or a member without name in a hook, a hook throwing on the probe (an `if` on the model, a call on a relation), a relationship to a class that is not a resource, an invalid history. Rendering throws a `DefinitionException` |\n| `hook-failure` | error | `toLinks()` threw on the probe, or holds a descriptor |\n| `invalid-resource` | error | The class is not a resource, its type cannot be read, or it exists at no revision |\n| `jsonapi-reserved-name` | error | An attribute or a relationship named `id` or `type` at the revision |\n| `jsonapi-name-collision` | error | An attribute and a relationship with one name at the revision: bound them with `until()` \u002F `since()` |\n| `jsonapi-absent-resource` | error | A relationship reaches, at the revision, a resource absent from it (`#[JsonApiSince]` without `was()` for older revisions) |\n| `missing-route` | error | The `self` route of `#[JsonApiRoutes]` does not exist |\n| `load-conflict` | warning | Two relationships load the same relation with different `withLoad()` constraints |\n| `filter-on-unloaded` | warning | `->filters()` on a relation that is not loaded, read resource by resource: let it load |\n\n`load-conflict` and `filter-on-unloaded` are found while rendering too, in debug only, in the diagnostics of the\n`JsonApiContext`.\n\n## When the document is wrong\n\n| Symptom | Cause and fix |\n| --- | --- |\n| A member is missing | Left out by `fields[type]`, by its condition, or empty (`attributes`, `meta`… are left out when empty) |\n| `fields` \u002F `include` rejected for a member that exists | It is added under an `if`: use `->when()` or `applyWhen()` |\n| `data` missing on a relationship | `relationship.linkage` is `included` or `loaded`, or the relationship has `->whenIncluded()` \u002F `->whenLoaded()` |\n| One query per resource | The relationship is read by a closure: use `$this->many(PostResource::class)`, or `->withLoad('posts')` |\n| A value has the wrong type | Use the matching descriptor (`integer()`, `datetime()`, `decimal()`, `enum()`…) |\n| A date lost its time | `date()` is a date without time: use `datetime()` |\n| `RenderingException` | The identifier is neither an integer nor a string, or the resource does not exist at the revision |\n| The error body is Laravel's | `JsonApi::renderErrors()` is not called, or the request does not expect JSON |\n",{"title":275,"description":682},"_VoWA0I9wAHefiG3Gr3LlMxhqpmzGpN2vGoMLUYtHnA",[690,692],{"title":271,"path":272,"stem":273,"description":691,"children":-1},"The Artisan commands of the package.",{"title":279,"path":280,"stem":281,"description":693,"children":-1},"The interfaces to plug your own types, error renderers, rendering stages and type naming.",1795438902804]