[{"data":1,"prerenderedAt":483},["ShallowReactive",2],{"libs":3,"navigation-openapi-writer":115,"\u002Fopenapi-writer\u002Freference\u002Fvalidation-rules":256,"\u002Fopenapi-writer\u002Freference\u002Fvalidation-rules-surround":478},[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,182,212,226,248],{"title":117,"since":118,"experimental":119,"icon":120,"path":121,"stem":122,"children":123,"page":119},"Getting started",null,false,"i-lucide-rocket","\u002Fopenapi-writer\u002Fgetting-started","openapi-writer\u002F1.getting-started",[124,127,131],{"title":125,"path":113,"stem":126,"since":118,"experimental":119},"Introduction","openapi-writer\u002F1.getting-started\u002F1.introduction",{"title":128,"path":129,"stem":130,"since":118,"experimental":119},"Installation","\u002Fopenapi-writer\u002Fgetting-started\u002Finstallation","openapi-writer\u002F1.getting-started\u002F2.installation",{"title":132,"path":133,"stem":134,"since":118,"experimental":119},"Quick start","\u002Fopenapi-writer\u002Fgetting-started\u002Fquick-start","openapi-writer\u002F1.getting-started\u002F3.quick-start",{"title":136,"since":118,"experimental":119,"icon":137,"path":138,"stem":139,"children":140,"page":119},"Building documents","i-lucide-blocks","\u002Fopenapi-writer\u002Fbuilding-documents","openapi-writer\u002F2.building-documents",[141,145,149,153,157,161,165],{"title":142,"path":143,"stem":144,"since":118,"experimental":119},"The object model","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fthe-object-model","openapi-writer\u002F2.building-documents\u002F1.the-object-model",{"title":146,"path":147,"stem":148,"since":118,"experimental":119},"Document","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fdocument","openapi-writer\u002F2.building-documents\u002F2.document",{"title":150,"path":151,"stem":152,"since":118,"experimental":119},"Paths and operations","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fpaths-and-operations","openapi-writer\u002F2.building-documents\u002F3.paths-and-operations",{"title":154,"path":155,"stem":156,"since":118,"experimental":119},"Requests and responses","\u002Fopenapi-writer\u002Fbuilding-documents\u002Frequests-and-responses","openapi-writer\u002F2.building-documents\u002F4.requests-and-responses",{"title":158,"path":159,"stem":160,"since":118,"experimental":119},"Components and references","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fcomponents-and-references","openapi-writer\u002F2.building-documents\u002F5.components-and-references",{"title":162,"path":163,"stem":164,"since":118,"experimental":119},"Security","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fsecurity","openapi-writer\u002F2.building-documents\u002F6.security",{"title":166,"path":167,"stem":168,"since":118,"experimental":119},"Webhooks and callbacks","\u002Fopenapi-writer\u002Fbuilding-documents\u002Fwebhooks-and-callbacks","openapi-writer\u002F2.building-documents\u002F7.webhooks-and-callbacks",{"title":170,"since":118,"experimental":119,"icon":21,"path":171,"stem":172,"children":173,"page":119},"Schemas","\u002Fopenapi-writer\u002Fschemas","openapi-writer\u002F3.schemas",[174,178],{"title":175,"path":176,"stem":177,"since":118,"experimental":119},"Types and constraints","\u002Fopenapi-writer\u002Fschemas\u002Ftypes-and-constraints","openapi-writer\u002F3.schemas\u002F1.types-and-constraints",{"title":179,"path":180,"stem":181,"since":118,"experimental":119},"Composition and polymorphism","\u002Fopenapi-writer\u002Fschemas\u002Fcomposition-and-polymorphism","openapi-writer\u002F3.schemas\u002F2.composition-and-polymorphism",{"title":183,"since":118,"experimental":119,"icon":184,"path":185,"stem":186,"children":187,"page":119},"Versions and output","i-lucide-layers","\u002Fopenapi-writer\u002Fversions-and-output","openapi-writer\u002F4.versions-and-output",[188,192,196,200,204,208],{"title":189,"path":190,"stem":191,"since":118,"experimental":119},"Writing a document","\u002Fopenapi-writer\u002Fversions-and-output\u002Fwriting-a-document","openapi-writer\u002F4.versions-and-output\u002F1.writing-a-document",{"title":193,"path":194,"stem":195,"since":118,"experimental":119},"Choosing a version","\u002Fopenapi-writer\u002Fversions-and-output\u002Fchoosing-a-version","openapi-writer\u002F4.versions-and-output\u002F2.choosing-a-version",{"title":197,"path":198,"stem":199,"since":118,"experimental":119},"Conversions","\u002Fopenapi-writer\u002Fversions-and-output\u002Fconversions","openapi-writer\u002F4.versions-and-output\u002F3.conversions",{"title":201,"path":202,"stem":203,"since":118,"experimental":119},"Strict and lenient","\u002Fopenapi-writer\u002Fversions-and-output\u002Fstrict-and-lenient","openapi-writer\u002F4.versions-and-output\u002F4.strict-and-lenient",{"title":205,"path":206,"stem":207,"since":118,"experimental":119},"OpenAPI 3.2","\u002Fopenapi-writer\u002Fversions-and-output\u002Fopenapi-3-2","openapi-writer\u002F4.versions-and-output\u002F5.openapi-3-2",{"title":209,"path":210,"stem":211,"since":118,"experimental":119},"Redoc extensions","\u002Fopenapi-writer\u002Fversions-and-output\u002Fredoc-extensions","openapi-writer\u002F4.versions-and-output\u002F6.redoc-extensions",{"title":213,"since":118,"experimental":119,"icon":214,"path":215,"stem":216,"children":217,"page":119},"Validation","i-lucide-badge-check","\u002Fopenapi-writer\u002Fvalidation","openapi-writer\u002F5.validation",[218,222],{"title":219,"path":220,"stem":221,"since":118,"experimental":119},"Validating a document","\u002Fopenapi-writer\u002Fvalidation\u002Fvalidating-a-document","openapi-writer\u002F5.validation\u002F1.validating-a-document",{"title":223,"path":224,"stem":225,"since":118,"experimental":119},"Custom rules","\u002Fopenapi-writer\u002Fvalidation\u002Fcustom-rules","openapi-writer\u002F5.validation\u002F2.custom-rules",{"title":227,"since":118,"experimental":119,"icon":228,"path":229,"stem":230,"children":231,"page":119},"Reference","i-lucide-library","\u002Fopenapi-writer\u002Freference","openapi-writer\u002F6.reference",[232,236,240,244],{"title":233,"path":234,"stem":235,"since":118,"experimental":119},"Objects","\u002Fopenapi-writer\u002Freference\u002Fobjects","openapi-writer\u002F6.reference\u002F1.objects",{"title":237,"path":238,"stem":239,"since":118,"experimental":119},"Enums","\u002Fopenapi-writer\u002Freference\u002Fenums","openapi-writer\u002F6.reference\u002F2.enums",{"title":241,"path":242,"stem":243,"since":118,"experimental":119},"Validation rules","\u002Fopenapi-writer\u002Freference\u002Fvalidation-rules","openapi-writer\u002F6.reference\u002F3.validation-rules",{"title":245,"path":246,"stem":247,"since":118,"experimental":119},"Exceptions","\u002Fopenapi-writer\u002Freference\u002Fexceptions","openapi-writer\u002F6.reference\u002F4.exceptions",{"title":249,"path":250,"children":251},"Releases","\u002Fopenapi-writer\u002Freleases",[252],{"title":253,"path":254,"stem":255,"since":118,"experimental":119},"Changelog","\u002Fopenapi-writer\u002Fchangelog","openapi-writer\u002FCHANGELOG",{"id":257,"title":241,"body":258,"description":471,"experimental":119,"extension":472,"links":118,"meta":473,"navigation":474,"path":242,"rawbody":475,"seo":476,"since":118,"stem":243,"__hash__":477},"openapi_writer\u002Fopenapi-writer\u002F6.reference\u002F3.validation-rules.md",{"type":259,"value":260,"toc":467},"minimark",[261,274,442,445],[262,263,264,265,269,270,273],"p",{},"Rules run on the document as written for the target version, after the official schema check. Their classes are in\n",[266,267,268],"code",{},"Ark4ne\\OpenApiWriter\\Validation\\Rules","; remove one with ",[266,271,272],{},"$validator->withoutRules(PathParametersRule::class)",".",[275,276,277,289,302,315,351,357,367,377,390,416],"field-group",{},[278,279,282],"field",{"name":280,"type":281},"UniqueOperationIdRule","error",[262,283,284,285,288],{},"Each ",[266,286,287],{},"operationId"," is unique in the document.",[278,290,292],{"name":291,"type":281},"PathParametersRule",[262,293,284,294,297,298,301],{},[266,295,296],{},"{name}"," variable of a path has a matching required ",[266,299,300],{},"in: path"," parameter, on the path item or on every\noperation.",[278,303,305],{"name":304,"type":281},"UniqueParametersRule",[262,306,307,308,311,312,273],{},"No two parameters of an operation, path item parameters included, share the same ",[266,309,310],{},"name"," and ",[266,313,314],{},"in",[278,316,318],{"name":317,"type":281},"LocalReferencesRule",[262,319,320,321,324,325,328,329,332,333,336,337,339,340,343,344,328,347,350],{},"Each local reference (",[266,322,323],{},"#\u002F…",") points to an existing element of the document: ",[266,326,327],{},"$ref",", ",[266,330,331],{},"operationRef"," and the values of\na discriminator ",[266,334,335],{},"mapping",". A ",[266,338,327],{}," inside a schema with an ",[266,341,342],{},"$id"," is resolved in that schema, as JSON Schema does.\nReferences to other documents and free values (",[266,345,346],{},"example",[266,348,349],{},"default","…) are not checked.",[278,352,354],{"name":353,"type":281},"SecurityRequirementsRule",[262,355,356],{},"Each security requirement names a declared security scheme, and asks only for OAuth2 scopes that its flows declare.",[278,358,361],{"name":359,"type":360},"DeclaredTagsRule","warning",[262,362,363,364,273],{},"Each tag used by an operation is declared in the root ",[266,365,366],{},"tags",[278,368,370],{"name":369,"type":281},"TagParentsRule",[262,371,372,373,376],{},"From 3.2, each ",[266,374,375],{},"Tag.parent"," names a declared tag, without cycle.",[278,378,380],{"name":379,"type":281},"EquivalentPathsRule",[262,381,382,383,311,386,389],{},"No two paths are equal once their variable names are ignored: ",[266,384,385],{},"\u002Fusers\u002F{id}",[266,387,388],{},"\u002Fusers\u002F{uuid}"," conflict.",[278,391,393],{"name":392,"type":360},"NonEmptyDocumentRule",[262,394,395,396,399,400,403,404,407,408,411,412,415],{},"The document declares at least one operation, in ",[266,397,398],{},"paths"," or ",[266,401,402],{},"webhooks"," (",[266,405,406],{},"x-webhooks"," before 3.1),\n",[266,409,410],{},"additionalOperations"," included. Path items of ",[266,413,414],{},"components"," do not count.",[278,417,419],{"name":418,"type":360},"ValueTypeRule",[262,420,284,421,311,423,425,426,429,430,433,434,437,438,441],{},[266,422,349],{},[266,424,346],{}," of a schema matches its declared type. A schema without ",[266,427,428],{},"type"," accepts any value; in 3.0,\n",[266,431,432],{},"nullable: true"," accepts ",[266,435,436],{},"null",". A number with a zero fraction (",[266,439,440],{},"1.0",") is an integer.",[262,443,444],{},"Before these rules, the validator reports:",[446,447,448,461],"ol",{},[449,450,451,452,456,457,460],"li",{},"every feature the version cannot express, which the\n",[453,454,455],"a",{"href":202},"strict mode"," would throw, as errors of the rule\n",[266,458,459],{},"Serializer","; when there is any, the validation stops there;",[449,462,463,464,273],{},"every violation of the official JSON schema of the version, when built with ",[266,465,466],{},"OpisJsonSchemaValidator",{"title":468,"searchDepth":469,"depth":469,"links":470},"",3,[],"The ten semantic rules of the validator, what each one checks and its severity.","md",{},true,"---\ntitle: Validation rules\ndescription: The ten semantic rules of the validator, what each one checks and its severity.\n---\n\nRules run on the document as written for the target version, after the official schema check. Their classes are in\n`Ark4ne\\OpenApiWriter\\Validation\\Rules`; remove one with `$validator->withoutRules(PathParametersRule::class)`.\n\n::field-group\n:::field{name=\"UniqueOperationIdRule\" type=\"error\"}\nEach `operationId` is unique in the document.\n:::\n:::field{name=\"PathParametersRule\" type=\"error\"}\nEach `{name}` variable of a path has a matching required `in: path` parameter, on the path item or on every\noperation.\n:::\n:::field{name=\"UniqueParametersRule\" type=\"error\"}\nNo two parameters of an operation, path item parameters included, share the same `name` and `in`.\n:::\n:::field{name=\"LocalReferencesRule\" type=\"error\"}\nEach local reference (`#\u002F…`) points to an existing element of the document: `$ref`, `operationRef` and the values of\na discriminator `mapping`. A `$ref` inside a schema with an `$id` is resolved in that schema, as JSON Schema does.\nReferences to other documents and free values (`example`, `default`…) are not checked.\n:::\n:::field{name=\"SecurityRequirementsRule\" type=\"error\"}\nEach security requirement names a declared security scheme, and asks only for OAuth2 scopes that its flows declare.\n:::\n:::field{name=\"DeclaredTagsRule\" type=\"warning\"}\nEach tag used by an operation is declared in the root `tags`.\n:::\n:::field{name=\"TagParentsRule\" type=\"error\"}\nFrom 3.2, each `Tag.parent` names a declared tag, without cycle.\n:::\n:::field{name=\"EquivalentPathsRule\" type=\"error\"}\nNo two paths are equal once their variable names are ignored: `\u002Fusers\u002F{id}` and `\u002Fusers\u002F{uuid}` conflict.\n:::\n:::field{name=\"NonEmptyDocumentRule\" type=\"warning\"}\nThe document declares at least one operation, in `paths` or `webhooks` (`x-webhooks` before 3.1),\n`additionalOperations` included. Path items of `components` do not count.\n:::\n:::field{name=\"ValueTypeRule\" type=\"warning\"}\nEach `default` and `example` of a schema matches its declared type. A schema without `type` accepts any value; in 3.0,\n`nullable: true` accepts `null`. A number with a zero fraction (`1.0`) is an integer.\n:::\n::\n\nBefore these rules, the validator reports:\n\n1. every feature the version cannot express, which the\n   [strict mode](\u002Fopenapi-writer\u002Fversions-and-output\u002Fstrict-and-lenient) would throw, as errors of the rule\n   `Serializer`; when there is any, the validation stops there;\n2. every violation of the official JSON schema of the version, when built with `OpisJsonSchemaValidator`.\n",{"title":241,"description":471},"KOZDL1ptfsjhLhzSzhBu_HmGcmXvC_43Zq-fAkvRz7E",[479,481],{"title":237,"path":238,"stem":239,"description":480,"children":-1},"The enums of Ark4ne\\OpenApiWriter\\Enums and the serialization levels, with their cases and values.",{"title":245,"path":246,"stem":247,"description":482,"children":-1},"The exceptions the library throws, when, and how to fix each one.",1795438901362]