[{"data":1,"prerenderedAt":1487},["ShallowReactive",2],{"libs":3,"navigation-laravel-json-api":115,"\u002Flaravel-json-api\u002Frequests\u002Ferrors":294,"\u002Flaravel-json-api\u002Frequests\u002Ferrors-surround":1482},[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":184,"body":296,"description":1476,"experimental":119,"extension":1477,"links":118,"meta":1478,"navigation":384,"path":185,"rawbody":1479,"seo":1480,"since":118,"stem":186,"__hash__":1481},"laravel_json_api\u002Flaravel-json-api\u002F3.requests\u002F4.errors.md",{"type":297,"value":298,"toc":1471},"minimark",[299,304,313,560,579,715,891,895,906,1199,1206,1268,1283,1287,1301,1376,1434,1454,1467],[300,301,303],"h2",{"id":302},"error-documents","Error documents",[305,306,307,308,312],"p",{},"One line in ",[309,310,311],"code",{},"bootstrap\u002Fapp.php"," renders the exceptions as JSON:API error documents, for the requests that expect JSON:",[314,315,320],"pre",{"className":316,"code":317,"filename":311,"language":318,"meta":319,"style":319},"language-php shiki shiki-themes material-theme-lighter github-light github-dark","use Ark4ne\\JsonApi\\Laravel\\JsonApi;\nuse Illuminate\\Foundation\\Configuration\\Exceptions;\n\n->withExceptions(function (Exceptions $exceptions) {\n    \u002F\u002F Your own render callbacks first: Laravel runs them in order.\n    $exceptions->render(\n        fn (PaymentRequired $e) => response()->json([...], 402),\n    );\n\n    JsonApi::renderErrors($exceptions);\n    \u002F\u002F or for some requests only:\n    \u002F\u002F JsonApi::renderErrors(\n    \u002F\u002F     $exceptions,\n    \u002F\u002F     fn ($request) => $request->is('api\u002F*'),\n    \u002F\u002F );\n})\n","php","",[309,321,322,355,379,386,423,430,446,494,500,505,524,530,536,542,548,554],{"__ignoreMap":319},[323,324,327,331,335,339,342,344,347,349,351],"span",{"class":325,"line":326},"line",1,[323,328,330],{"class":329},"sw1J6","use",[323,332,334],{"class":333},"s_hVV"," Ark4ne",[323,336,338],{"class":337},"s39Yj","\\",[323,340,341],{"class":333},"JsonApi",[323,343,338],{"class":337},[323,345,346],{"class":333},"Laravel",[323,348,338],{"class":337},[323,350,341],{"class":333},[323,352,354],{"class":353},"sP7_E",";\n",[323,356,358,360,363,365,368,370,372,374,377],{"class":325,"line":357},2,[323,359,330],{"class":329},[323,361,362],{"class":333}," Illuminate",[323,364,338],{"class":337},[323,366,367],{"class":333},"Foundation",[323,369,338],{"class":337},[323,371,255],{"class":333},[323,373,338],{"class":337},[323,375,376],{"class":333},"Exceptions",[323,378,354],{"class":353},[323,380,382],{"class":325,"line":381},3,[323,383,385],{"emptyLinePlaceholder":384},true,"\n",[323,387,389,393,397,400,404,407,410,413,417,420],{"class":325,"line":388},4,[323,390,392],{"class":391},"smGrS","->",[323,394,396],{"class":395},"sGLFI","withExceptions",[323,398,399],{"class":353},"(",[323,401,403],{"class":402},"sbsja","function",[323,405,406],{"class":353}," (",[323,408,376],{"class":409},"sZMiF",[323,411,412],{"class":353}," $",[323,414,416],{"class":415},"su5hD","exceptions",[323,418,419],{"class":353},")",[323,421,422],{"class":353}," {\n",[323,424,426],{"class":325,"line":425},5,[323,427,429],{"class":428},"sutJx","    \u002F\u002F Your own render callbacks first: Laravel runs them in order.\n",[323,431,433,436,438,440,443],{"class":325,"line":432},6,[323,434,435],{"class":353},"    $",[323,437,416],{"class":415},[323,439,392],{"class":391},[323,441,442],{"class":395},"render",[323,444,445],{"class":353},"(\n",[323,447,449,452,454,457,459,462,464,467,470,473,475,478,481,484,487,491],{"class":325,"line":448},7,[323,450,451],{"class":402},"        fn",[323,453,406],{"class":353},[323,455,456],{"class":409},"PaymentRequired",[323,458,412],{"class":353},[323,460,461],{"class":415},"e",[323,463,419],{"class":353},[323,465,466],{"class":353}," =>",[323,468,469],{"class":395}," response",[323,471,472],{"class":353},"()",[323,474,392],{"class":391},[323,476,477],{"class":395},"json",[323,479,480],{"class":353},"([",[323,482,483],{"class":391},"...",[323,485,486],{"class":353},"],",[323,488,490],{"class":489},"srdBf"," 402",[323,492,493],{"class":353},"),\n",[323,495,497],{"class":325,"line":496},8,[323,498,499],{"class":353},"    );\n",[323,501,503],{"class":325,"line":502},9,[323,504,385],{"emptyLinePlaceholder":384},[323,506,507,510,513,516,519,521],{"class":325,"line":29},[323,508,509],{"class":409},"    JsonApi",[323,511,512],{"class":391},"::",[323,514,515],{"class":395},"renderErrors",[323,517,518],{"class":353},"($",[323,520,416],{"class":415},[323,522,523],{"class":353},");\n",[323,525,527],{"class":325,"line":526},11,[323,528,529],{"class":428},"    \u002F\u002F or for some requests only:\n",[323,531,533],{"class":325,"line":532},12,[323,534,535],{"class":428},"    \u002F\u002F JsonApi::renderErrors(\n",[323,537,539],{"class":325,"line":538},13,[323,540,541],{"class":428},"    \u002F\u002F     $exceptions,\n",[323,543,545],{"class":325,"line":544},14,[323,546,547],{"class":428},"    \u002F\u002F     fn ($request) => $request->is('api\u002F*'),\n",[323,549,551],{"class":325,"line":550},15,[323,552,553],{"class":428},"    \u002F\u002F );\n",[323,555,557],{"class":325,"line":556},16,[323,558,559],{"class":353},"})\n",[305,561,562,563,566,567,570,571,574,575,578],{},"The requests rendered are those that expect JSON (",[309,564,565],{},"$request->expectsJson()","), or those the closure accepts.\n",[309,568,569],{},"shouldRenderJsonWhen()"," is not read: give the same condition. An exception that renders itself (",[309,572,573],{},"render()",",\n",[309,576,577],{},"Responsable",") is still rendered by Laravel.",[580,581,582,598],"table",{},[583,584,585],"thead",{},[586,587,588,592,595],"tr",{},[589,590,591],"th",{},"Exception",[589,593,594],{},"Status",[589,596,597],{},"Error objects",[599,600,601,631,646,668,683,698],"tbody",{},[586,602,603,609,615],{},[604,605,606],"td",{},[309,607,608],{},"ValidationException",[604,610,611,612,419],{},"its status (",[309,613,614],{},"422",[604,616,617,618,406,621,624,625,406,628,419],{},"one per message, with ",[309,619,620],{},"source.pointer",[309,622,623],{},"\u002Fdata\u002Fattributes\u002Ftitle",") or ",[309,626,627],{},"source.parameter",[309,629,630],{},"fields[post]",[586,632,633,638,643],{},[604,634,635],{},[309,636,637],{},"AuthenticationException",[604,639,640],{},[309,641,642],{},"401",[604,644,645],{},"its message",[586,647,648,653,666],{},[604,649,650],{},[309,651,652],{},"AuthorizationException",[604,654,655,658,659,662,663],{},[309,656,657],{},"403",", or the status of ",[309,660,661],{},"denyWithStatus()"," \u002F ",[309,664,665],{},"denyAsNotFound()",[604,667,645],{},[586,669,670,675,680],{},[604,671,672],{},[309,673,674],{},"ModelNotFoundException",[604,676,677],{},[309,678,679],{},"404",[604,681,682],{},"no detail: the class of the model is not disclosed",[586,684,685,693,696],{},[604,686,687,406,690,419],{},[309,688,689],{},"HttpException",[309,691,692],{},"abort()",[604,694,695],{},"its status, with its headers",[604,697,645],{},[586,699,700,703,708],{},[604,701,702],{},"any other",[604,704,705],{},[309,706,707],{},"500",[604,709,710,711,714],{},"its message, class, file and line only when ",[309,712,713],{},"app.debug"," is on",[314,716,719],{"className":717,"code":718,"language":477,"meta":319,"style":319},"language-json shiki shiki-themes material-theme-lighter github-light github-dark","{\n  \"jsonapi\": { \"version\": \"1.1\" },\n  \"errors\": [\n    {\n      \"status\": \"422\",\n      \"title\": \"Unprocessable Content\",\n      \"detail\": \"The title field is required.\",\n      \"source\": { \"pointer\": \"\u002Fdata\u002Fattributes\u002Ftitle\" }\n    }\n  ]\n}\n",[309,720,721,726,766,780,785,805,825,845,876,881,886],{"__ignoreMap":319},[323,722,723],{"class":325,"line":326},[323,724,725],{"class":353},"{\n",[323,727,728,731,735,738,741,744,747,750,752,754,757,761,763],{"class":325,"line":357},[323,729,730],{"class":337},"  \"",[323,732,734],{"class":733},"sseR_","jsonapi",[323,736,737],{"class":337},"\"",[323,739,740],{"class":353},":",[323,742,743],{"class":353}," {",[323,745,746],{"class":337}," \"",[323,748,749],{"class":409},"version",[323,751,737],{"class":337},[323,753,740],{"class":353},[323,755,746],{"class":756},"sjJ54",[323,758,760],{"class":759},"s_sjI","1.1",[323,762,737],{"class":756},[323,764,765],{"class":353}," },\n",[323,767,768,770,773,775,777],{"class":325,"line":381},[323,769,730],{"class":337},[323,771,772],{"class":733},"errors",[323,774,737],{"class":337},[323,776,740],{"class":353},[323,778,779],{"class":353}," [\n",[323,781,782],{"class":325,"line":388},[323,783,784],{"class":353},"    {\n",[323,786,787,790,793,795,797,799,801,803],{"class":325,"line":425},[323,788,789],{"class":337},"      \"",[323,791,792],{"class":409},"status",[323,794,737],{"class":337},[323,796,740],{"class":353},[323,798,746],{"class":756},[323,800,614],{"class":759},[323,802,737],{"class":756},[323,804,574],{"class":353},[323,806,807,809,812,814,816,818,821,823],{"class":325,"line":432},[323,808,789],{"class":337},[323,810,811],{"class":409},"title",[323,813,737],{"class":337},[323,815,740],{"class":353},[323,817,746],{"class":756},[323,819,820],{"class":759},"Unprocessable Content",[323,822,737],{"class":756},[323,824,574],{"class":353},[323,826,827,829,832,834,836,838,841,843],{"class":325,"line":448},[323,828,789],{"class":337},[323,830,831],{"class":409},"detail",[323,833,737],{"class":337},[323,835,740],{"class":353},[323,837,746],{"class":756},[323,839,840],{"class":759},"The title field is required.",[323,842,737],{"class":756},[323,844,574],{"class":353},[323,846,847,849,852,854,856,858,860,863,865,867,869,871,873],{"class":325,"line":496},[323,848,789],{"class":337},[323,850,851],{"class":409},"source",[323,853,737],{"class":337},[323,855,740],{"class":353},[323,857,743],{"class":353},[323,859,746],{"class":337},[323,861,862],{"class":489},"pointer",[323,864,737],{"class":337},[323,866,740],{"class":353},[323,868,746],{"class":756},[323,870,623],{"class":759},[323,872,737],{"class":756},[323,874,875],{"class":353}," }\n",[323,877,878],{"class":325,"line":502},[323,879,880],{"class":353},"    }\n",[323,882,883],{"class":325,"line":29},[323,884,885],{"class":353},"  ]\n",[323,887,888],{"class":325,"line":526},[323,889,890],{"class":353},"}\n",[300,892,894],{"id":893},"error-renderers-of-your-own","Error renderers of your own",[305,896,897,898,901,902,905],{},"A renderer implements ",[309,899,900],{},"Ark4ne\\JsonApi\\Http\\Errors\\ErrorRenderer",". Renderers are asked by decreasing ",[309,903,904],{},"PRIORITY","; the\nfirst that supports the exception renders it.",[314,907,910],{"className":316,"code":908,"filename":909,"language":318,"meta":319,"style":319},"final readonly class PaymentRequiredErrorRenderer implements ErrorRenderer\n{\n    \u002F\u002F Above the renderers of the package (Validation 400,\n    \u002F\u002F Authentication \u002F Authorization \u002F ModelNotFound 300, Http 200,\n    \u002F\u002F Throwable 0).\n    public const PRIORITY = 1000;\n\n    public function supports(Throwable $exception): bool\n    {\n        return $exception instanceof PaymentRequired;\n    }\n\n    public function render(\n        Throwable $exception,\n        Request $request,\n    ): ErrorDocument {\n        return new ErrorDocument(402, [\n            new ErrorObject(\n                status: 402,\n                title: 'Payment Required',\n                detail: $exception->getMessage(),\n                code: 'payment',\n            ),\n        ]);\n    }\n}\n","app\u002FHttp\u002FErrors\u002FPaymentRequiredErrorRenderer.php",[309,911,912,933,937,942,947,952,971,975,1002,1006,1025,1029,1033,1044,1055,1067,1079,1099,1110,1122,1140,1160,1177,1183,1189,1194],{"__ignoreMap":319},[323,913,914,917,920,923,927,930],{"class":325,"line":326},[323,915,916],{"class":402},"final",[323,918,919],{"class":402}," readonly",[323,921,922],{"class":402}," class",[323,924,926],{"class":925},"sbgvK"," PaymentRequiredErrorRenderer",[323,928,929],{"class":402}," implements",[323,931,932],{"class":925}," ErrorRenderer\n",[323,934,935],{"class":325,"line":357},[323,936,725],{"class":353},[323,938,939],{"class":325,"line":381},[323,940,941],{"class":428},"    \u002F\u002F Above the renderers of the package (Validation 400,\n",[323,943,944],{"class":325,"line":388},[323,945,946],{"class":428},"    \u002F\u002F Authentication \u002F Authorization \u002F ModelNotFound 300, Http 200,\n",[323,948,949],{"class":325,"line":425},[323,950,951],{"class":428},"    \u002F\u002F Throwable 0).\n",[323,953,954,957,960,963,966,969],{"class":325,"line":432},[323,955,956],{"class":402},"    public",[323,958,959],{"class":402}," const",[323,961,962],{"class":333}," PRIORITY",[323,964,965],{"class":391}," =",[323,967,968],{"class":489}," 1000",[323,970,354],{"class":353},[323,972,973],{"class":325,"line":448},[323,974,385],{"emptyLinePlaceholder":384},[323,976,977,979,982,985,987,990,992,995,997,999],{"class":325,"line":496},[323,978,956],{"class":402},[323,980,981],{"class":402}," function",[323,983,984],{"class":395}," supports",[323,986,399],{"class":353},[323,988,989],{"class":409},"Throwable",[323,991,412],{"class":353},[323,993,994],{"class":415},"exception",[323,996,419],{"class":353},[323,998,740],{"class":391},[323,1000,1001],{"class":329}," bool\n",[323,1003,1004],{"class":325,"line":502},[323,1005,784],{"class":353},[323,1007,1008,1012,1014,1017,1020,1023],{"class":325,"line":29},[323,1009,1011],{"class":1010},"sVHd0","        return",[323,1013,412],{"class":353},[323,1015,1016],{"class":415},"exception ",[323,1018,1019],{"class":391},"instanceof",[323,1021,1022],{"class":409}," PaymentRequired",[323,1024,354],{"class":353},[323,1026,1027],{"class":325,"line":526},[323,1028,880],{"class":353},[323,1030,1031],{"class":325,"line":532},[323,1032,385],{"emptyLinePlaceholder":384},[323,1034,1035,1037,1039,1042],{"class":325,"line":538},[323,1036,956],{"class":402},[323,1038,981],{"class":402},[323,1040,1041],{"class":395}," render",[323,1043,445],{"class":353},[323,1045,1046,1049,1051,1053],{"class":325,"line":544},[323,1047,1048],{"class":409},"        Throwable",[323,1050,412],{"class":353},[323,1052,994],{"class":415},[323,1054,574],{"class":353},[323,1056,1057,1060,1062,1065],{"class":325,"line":550},[323,1058,1059],{"class":409},"        Request",[323,1061,412],{"class":353},[323,1063,1064],{"class":415},"request",[323,1066,574],{"class":353},[323,1068,1069,1072,1074,1077],{"class":325,"line":556},[323,1070,1071],{"class":353},"    )",[323,1073,740],{"class":391},[323,1075,1076],{"class":409}," ErrorDocument",[323,1078,422],{"class":353},[323,1080,1082,1084,1087,1089,1091,1094,1097],{"class":325,"line":1081},17,[323,1083,1011],{"class":1010},[323,1085,1086],{"class":329}," new",[323,1088,1076],{"class":409},[323,1090,399],{"class":353},[323,1092,1093],{"class":489},"402",[323,1095,1096],{"class":353},",",[323,1098,779],{"class":353},[323,1100,1102,1105,1108],{"class":325,"line":1101},18,[323,1103,1104],{"class":329},"            new",[323,1106,1107],{"class":409}," ErrorObject",[323,1109,445],{"class":353},[323,1111,1113,1116,1118,1120],{"class":325,"line":1112},19,[323,1114,1115],{"class":925},"                status",[323,1117,740],{"class":353},[323,1119,490],{"class":489},[323,1121,574],{"class":353},[323,1123,1124,1127,1129,1132,1135,1138],{"class":325,"line":58},[323,1125,1126],{"class":925},"                title",[323,1128,740],{"class":353},[323,1130,1131],{"class":756}," '",[323,1133,1134],{"class":759},"Payment Required",[323,1136,1137],{"class":756},"'",[323,1139,574],{"class":353},[323,1141,1143,1146,1148,1150,1152,1154,1157],{"class":325,"line":1142},21,[323,1144,1145],{"class":925},"                detail",[323,1147,740],{"class":353},[323,1149,412],{"class":353},[323,1151,994],{"class":415},[323,1153,392],{"class":391},[323,1155,1156],{"class":395},"getMessage",[323,1158,1159],{"class":353},"(),\n",[323,1161,1163,1166,1168,1170,1173,1175],{"class":325,"line":1162},22,[323,1164,1165],{"class":925},"                code",[323,1167,740],{"class":353},[323,1169,1131],{"class":756},[323,1171,1172],{"class":759},"payment",[323,1174,1137],{"class":756},[323,1176,574],{"class":353},[323,1178,1180],{"class":325,"line":1179},23,[323,1181,1182],{"class":353},"            ),\n",[323,1184,1186],{"class":325,"line":1185},24,[323,1187,1188],{"class":353},"        ]);\n",[323,1190,1192],{"class":325,"line":1191},25,[323,1193,880],{"class":353},[323,1195,1197],{"class":325,"line":1196},26,[323,1198,890],{"class":353},[305,1200,1201,1202,1205],{},"Declare it in ",[309,1203,1204],{},"config\u002Fjsonapi.php","; renderers are built by the container, so they may have dependencies:",[314,1207,1209],{"className":316,"code":1208,"filename":1204,"language":318,"meta":319,"style":319},"'errors' => [\n    'renderers' => [App\\Http\\Errors\\PaymentRequiredErrorRenderer::class],\n],\n",[309,1210,1211,1223,1264],{"__ignoreMap":319},[323,1212,1213,1215,1217,1219,1221],{"class":325,"line":326},[323,1214,1137],{"class":756},[323,1216,772],{"class":759},[323,1218,1137],{"class":756},[323,1220,466],{"class":391},[323,1222,779],{"class":353},[323,1224,1225,1228,1231,1233,1235,1238,1241,1243,1246,1248,1251,1253,1256,1258,1261],{"class":325,"line":357},[323,1226,1227],{"class":756},"    '",[323,1229,1230],{"class":759},"renderers",[323,1232,1137],{"class":756},[323,1234,466],{"class":391},[323,1236,1237],{"class":353}," [",[323,1239,1240],{"class":333},"App",[323,1242,338],{"class":337},[323,1244,1245],{"class":333},"Http",[323,1247,338],{"class":337},[323,1249,1250],{"class":333},"Errors",[323,1252,338],{"class":337},[323,1254,1255],{"class":409},"PaymentRequiredErrorRenderer",[323,1257,512],{"class":391},[323,1259,1260],{"class":329},"class",[323,1262,1263],{"class":353},"],\n",[323,1265,1266],{"class":325,"line":381},[323,1267,1263],{"class":353},[305,1269,1270,1271,1274,1275,1278,1279,1282],{},"To replace them all, bind your own ",[309,1272,1273],{},"ErrorRenderers"," in the container (",[309,1276,1277],{},"ErrorRenderers::default($jsonapi)->with(...)",",\nor ",[309,1280,1281],{},"new ErrorRenderers($jsonapi, ...$renderers)",").",[300,1284,1286],{"id":1285},"content-negotiation","Content negotiation",[305,1288,1289,1290,1292,1293,1300],{},"The ",[309,1291,734],{}," route middleware applies the ",[1294,1295,1299],"a",{"href":1296,"rel":1297},"https:\u002F\u002Fjsonapi.org\u002Fformat\u002F#content-negotiation",[1298],"nofollow","content negotiation"," of\nJSON:API 1.1:",[314,1302,1305],{"className":316,"code":1303,"filename":1304,"language":318,"meta":319,"style":319},"Route::middleware('jsonapi')->group(function () {\n    Route::apiResource('posts', PostController::class);\n});\n","routes\u002Fapi.php",[309,1306,1307,1341,1371],{"__ignoreMap":319},[323,1308,1309,1312,1314,1317,1319,1321,1323,1325,1327,1329,1332,1334,1336,1339],{"class":325,"line":326},[323,1310,1311],{"class":409},"Route",[323,1313,512],{"class":391},[323,1315,1316],{"class":395},"middleware",[323,1318,399],{"class":353},[323,1320,1137],{"class":756},[323,1322,734],{"class":759},[323,1324,1137],{"class":756},[323,1326,419],{"class":353},[323,1328,392],{"class":391},[323,1330,1331],{"class":395},"group",[323,1333,399],{"class":353},[323,1335,403],{"class":402},[323,1337,1338],{"class":353}," ()",[323,1340,422],{"class":353},[323,1342,1343,1346,1348,1351,1353,1355,1358,1360,1362,1365,1367,1369],{"class":325,"line":357},[323,1344,1345],{"class":409},"    Route",[323,1347,512],{"class":391},[323,1349,1350],{"class":395},"apiResource",[323,1352,399],{"class":353},[323,1354,1137],{"class":756},[323,1356,1357],{"class":759},"posts",[323,1359,1137],{"class":756},[323,1361,1096],{"class":353},[323,1363,1364],{"class":409}," PostController",[323,1366,512],{"class":391},[323,1368,1260],{"class":329},[323,1370,523],{"class":353},[323,1372,1373],{"class":325,"line":381},[323,1374,1375],{"class":353},"});\n",[1377,1378,1379,1402,1427],"ul",{},[1380,1381,1382,1385,1386,1389,1390,1393,1394,1397,1398,1401],"li",{},[309,1383,1384],{},"415 Unsupported Media Type"," when the ",[309,1387,1388],{},"Content-Type"," is ",[309,1391,1392],{},"application\u002Fvnd.api+json"," with a parameter other than ",[309,1395,1396],{},"ext","\nand ",[309,1399,1400],{},"profile",", or with an extension the server does not support;",[1380,1403,1404,1407,1408,1410,1411,1414,1415,1418,1419,1422,1423,1426],{},[309,1405,1406],{},"406 Not Acceptable"," when every ",[309,1409,1392],{}," of ",[309,1412,1413],{},"Accept"," has such a parameter or extension, or is\nrefused (",[309,1416,1417],{},"q=0","); ",[309,1420,1421],{},"*\u002F*"," and ",[309,1424,1425],{},"application\u002Fjson"," are served;",[1380,1428,1429,1430,1433],{},"every response, these errors included, gets ",[309,1431,1432],{},"Vary: Accept",".",[305,1435,1436,1437,1440,1441,1443,1444,1447,1448,1451,1452,1433],{},"The supported extensions are those of ",[309,1438,1439],{},"document.jsonapi.ext","; unknown profiles are ignored. Both errors are\n",[309,1442,689],{},"s, rendered by ",[309,1445,1446],{},"JsonApi::renderErrors()",". On every route, documents are served with the extensions and\nprofiles of ",[309,1449,1450],{},"document.jsonapi"," in their ",[309,1453,1388],{},[1455,1456,1457],"note",{},[305,1458,1459,1460,1462,1463,1466],{},"An application that already has a ",[309,1461,734],{}," middleware alias keeps it: alias\n",[309,1464,1465],{},"Ark4ne\\JsonApi\\Http\\Middleware\\NegotiateContent"," under another name.",[1468,1469,1470],"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 .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sGLFI, html code.shiki .sGLFI{--shiki-light:#6182B8;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sbsja, html code.shiki .sbsja{--shiki-light:#9C3EDA;--shiki-default:#D73A49;--shiki-dark:#F97583}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 .sutJx, html code.shiki .sutJx{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#6A737D;--shiki-dark-font-style:inherit}html pre.shiki code .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sseR_, html code.shiki .sseR_{--shiki-light:#9C3EDA;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}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}",{"title":319,"searchDepth":381,"depth":381,"links":1472},[1473,1474,1475],{"id":302,"depth":357,"text":303},{"id":893,"depth":357,"text":894},{"id":1285,"depth":357,"text":1286},"Render every exception as a JSON:API error document, and apply the content negotiation of JSON:API 1.1.","md",{},"---\ntitle: Errors & content negotiation\ndescription: Render every exception as a JSON:API error document, and apply the content negotiation of JSON:API 1.1.\n---\n\n## Error documents\n\nOne line in `bootstrap\u002Fapp.php` renders the exceptions as JSON:API error documents, for the requests that expect JSON:\n\n```php [bootstrap\u002Fapp.php]\nuse Ark4ne\\JsonApi\\Laravel\\JsonApi;\nuse Illuminate\\Foundation\\Configuration\\Exceptions;\n\n->withExceptions(function (Exceptions $exceptions) {\n    \u002F\u002F Your own render callbacks first: Laravel runs them in order.\n    $exceptions->render(\n        fn (PaymentRequired $e) => response()->json([...], 402),\n    );\n\n    JsonApi::renderErrors($exceptions);\n    \u002F\u002F or for some requests only:\n    \u002F\u002F JsonApi::renderErrors(\n    \u002F\u002F     $exceptions,\n    \u002F\u002F     fn ($request) => $request->is('api\u002F*'),\n    \u002F\u002F );\n})\n```\n\nThe requests rendered are those that expect JSON (`$request->expectsJson()`), or those the closure accepts.\n`shouldRenderJsonWhen()` is not read: give the same condition. An exception that renders itself (`render()`,\n`Responsable`) is still rendered by Laravel.\n\n| Exception | Status | Error objects |\n| --- | --- | --- |\n| `ValidationException` | its status (`422`) | one per message, with `source.pointer` (`\u002Fdata\u002Fattributes\u002Ftitle`) or `source.parameter` (`fields[post]`) |\n| `AuthenticationException` | `401` | its message |\n| `AuthorizationException` | `403`, or the status of `denyWithStatus()` \u002F `denyAsNotFound()` | its message |\n| `ModelNotFoundException` | `404` | no detail: the class of the model is not disclosed |\n| `HttpException` (`abort()`) | its status, with its headers | its message |\n| any other | `500` | its message, class, file and line only when `app.debug` is on |\n\n```json\n{\n  \"jsonapi\": { \"version\": \"1.1\" },\n  \"errors\": [\n    {\n      \"status\": \"422\",\n      \"title\": \"Unprocessable Content\",\n      \"detail\": \"The title field is required.\",\n      \"source\": { \"pointer\": \"\u002Fdata\u002Fattributes\u002Ftitle\" }\n    }\n  ]\n}\n```\n\n## Error renderers of your own\n\nA renderer implements `Ark4ne\\JsonApi\\Http\\Errors\\ErrorRenderer`. Renderers are asked by decreasing `PRIORITY`; the\nfirst that supports the exception renders it.\n\n```php [app\u002FHttp\u002FErrors\u002FPaymentRequiredErrorRenderer.php]\nfinal readonly class PaymentRequiredErrorRenderer implements ErrorRenderer\n{\n    \u002F\u002F Above the renderers of the package (Validation 400,\n    \u002F\u002F Authentication \u002F Authorization \u002F ModelNotFound 300, Http 200,\n    \u002F\u002F Throwable 0).\n    public const PRIORITY = 1000;\n\n    public function supports(Throwable $exception): bool\n    {\n        return $exception instanceof PaymentRequired;\n    }\n\n    public function render(\n        Throwable $exception,\n        Request $request,\n    ): ErrorDocument {\n        return new ErrorDocument(402, [\n            new ErrorObject(\n                status: 402,\n                title: 'Payment Required',\n                detail: $exception->getMessage(),\n                code: 'payment',\n            ),\n        ]);\n    }\n}\n```\n\nDeclare it in `config\u002Fjsonapi.php`; renderers are built by the container, so they may have dependencies:\n\n```php [config\u002Fjsonapi.php]\n'errors' => [\n    'renderers' => [App\\Http\\Errors\\PaymentRequiredErrorRenderer::class],\n],\n```\n\nTo replace them all, bind your own `ErrorRenderers` in the container (`ErrorRenderers::default($jsonapi)->with(...)`,\nor `new ErrorRenderers($jsonapi, ...$renderers)`).\n\n## Content negotiation\n\nThe `jsonapi` route middleware applies the [content negotiation](https:\u002F\u002Fjsonapi.org\u002Fformat\u002F#content-negotiation) of\nJSON:API 1.1:\n\n```php [routes\u002Fapi.php]\nRoute::middleware('jsonapi')->group(function () {\n    Route::apiResource('posts', PostController::class);\n});\n```\n\n- `415 Unsupported Media Type` when the `Content-Type` is `application\u002Fvnd.api+json` with a parameter other than `ext`\n  and `profile`, or with an extension the server does not support;\n- `406 Not Acceptable` when every `application\u002Fvnd.api+json` of `Accept` has such a parameter or extension, or is\n  refused (`q=0`); `*\u002F*` and `application\u002Fjson` are served;\n- every response, these errors included, gets `Vary: Accept`.\n\nThe supported extensions are those of `document.jsonapi.ext`; unknown profiles are ignored. Both errors are\n`HttpException`s, rendered by `JsonApi::renderErrors()`. On every route, documents are served with the extensions and\nprofiles of `document.jsonapi` in their `Content-Type`.\n\n::note\nAn application that already has a `jsonapi` middleware alias keeps it: alias\n`Ark4ne\\JsonApi\\Http\\Middleware\\NegotiateContent` under another name.\n::\n",{"title":184,"description":1476},"L3GiU_H5fnhnQekpdg7-1RzuFYg_CAKchJkTbafL4CE",[1483,1485],{"title":180,"path":181,"stem":182,"description":1484,"children":-1},"Validate the resource object of a POST or PATCH body and read it in the controller.",{"title":193,"path":194,"stem":195,"description":1486,"children":-1},"Pin each client on a dated revision of your API, Stripe-style, and keep only the latest shape in the code.",1795438901989]