[{"data":1,"prerenderedAt":2027},["ShallowReactive",2],{"libs":3,"navigation-openapi-writer":115,"\u002Fopenapi-writer\u002Fschemas\u002Ftypes-and-constraints":256,"\u002Fopenapi-writer\u002Fschemas\u002Ftypes-and-constraints-surround":2022},[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":175,"body":258,"description":2016,"experimental":119,"extension":2017,"links":118,"meta":2018,"navigation":327,"path":176,"rawbody":2019,"seo":2020,"since":118,"stem":177,"__hash__":2021},"openapi_writer\u002Fopenapi-writer\u002F3.schemas\u002F1.types-and-constraints.md",{"type":259,"value":260,"toc":2004},"minimark",[261,273,278,281,501,515,566,570,579,702,706,871,881,962,966,1084,1097,1101,1196,1208,1212,1375,1410,1413,1420,1622,1635,1732,1735,1821,1844,1889,1910,1914,1956,1960,2000],[262,263,264,268,269,272],"p",{},[265,266,267],"code",{},"Schema"," describes a value, with the JSON Schema 2020-12 vocabulary of OpenAPI 3.1. Write the 3.1 model; for 3.0 the\nlibrary converts what differs (see ",[270,271,197],"a",{"href":198},").",[274,275,277],"h2",{"id":276},"types","Types",[262,279,280],{},"One shortcut per type; the argument is the objectId (property or component name):",[282,283,288],"pre",{"className":284,"code":285,"language":286,"meta":287,"style":287},"language-php shiki shiki-themes material-theme-lighter github-light github-dark","use Ark4ne\\OpenApiWriter\\Objects\\Schema;\n\nSchema::string('name');\nSchema::integer('age');\nSchema::number('price');\nSchema::boolean('active');\nSchema::array('tags');\nSchema::object('address');\nSchema::null();\nSchema::create('anything');   \u002F\u002F no type\n","php","",[265,289,290,322,329,359,380,401,421,442,463,476],{"__ignoreMap":287},[291,292,295,299,303,307,310,312,314,316,318],"span",{"class":293,"line":294},"line",1,[291,296,298],{"class":297},"sw1J6","use",[291,300,302],{"class":301},"s_hVV"," Ark4ne",[291,304,306],{"class":305},"s39Yj","\\",[291,308,309],{"class":301},"OpenApiWriter",[291,311,306],{"class":305},[291,313,233],{"class":301},[291,315,306],{"class":305},[291,317,267],{"class":301},[291,319,321],{"class":320},"sP7_E",";\n",[291,323,325],{"class":293,"line":324},2,[291,326,328],{"emptyLinePlaceholder":327},true,"\n",[291,330,332,335,339,343,346,350,354,356],{"class":293,"line":331},3,[291,333,267],{"class":334},"sZMiF",[291,336,338],{"class":337},"smGrS","::",[291,340,342],{"class":341},"sGLFI","string",[291,344,345],{"class":320},"(",[291,347,349],{"class":348},"sjJ54","'",[291,351,353],{"class":352},"s_sjI","name",[291,355,349],{"class":348},[291,357,358],{"class":320},");\n",[291,360,362,364,366,369,371,373,376,378],{"class":293,"line":361},4,[291,363,267],{"class":334},[291,365,338],{"class":337},[291,367,368],{"class":341},"integer",[291,370,345],{"class":320},[291,372,349],{"class":348},[291,374,375],{"class":352},"age",[291,377,349],{"class":348},[291,379,358],{"class":320},[291,381,383,385,387,390,392,394,397,399],{"class":293,"line":382},5,[291,384,267],{"class":334},[291,386,338],{"class":337},[291,388,389],{"class":341},"number",[291,391,345],{"class":320},[291,393,349],{"class":348},[291,395,396],{"class":352},"price",[291,398,349],{"class":348},[291,400,358],{"class":320},[291,402,404,406,408,411,413,415,417,419],{"class":293,"line":403},6,[291,405,267],{"class":334},[291,407,338],{"class":337},[291,409,410],{"class":341},"boolean",[291,412,345],{"class":320},[291,414,349],{"class":348},[291,416,12],{"class":352},[291,418,349],{"class":348},[291,420,358],{"class":320},[291,422,424,426,428,431,433,435,438,440],{"class":293,"line":423},7,[291,425,267],{"class":334},[291,427,338],{"class":337},[291,429,430],{"class":341},"array",[291,432,345],{"class":320},[291,434,349],{"class":348},[291,436,437],{"class":352},"tags",[291,439,349],{"class":348},[291,441,358],{"class":320},[291,443,445,447,449,452,454,456,459,461],{"class":293,"line":444},8,[291,446,267],{"class":334},[291,448,338],{"class":337},[291,450,451],{"class":341},"object",[291,453,345],{"class":320},[291,455,349],{"class":348},[291,457,458],{"class":352},"address",[291,460,349],{"class":348},[291,462,358],{"class":320},[291,464,466,468,470,473],{"class":293,"line":465},9,[291,467,267],{"class":334},[291,469,338],{"class":337},[291,471,472],{"class":341},"null",[291,474,475],{"class":320},"();\n",[291,477,478,480,482,485,487,489,492,494,497],{"class":293,"line":29},[291,479,267],{"class":334},[291,481,338],{"class":337},[291,483,484],{"class":341},"create",[291,486,345],{"class":320},[291,488,349],{"class":348},[291,490,491],{"class":352},"anything",[291,493,349],{"class":348},[291,495,496],{"class":320},");",[291,498,500],{"class":499},"sutJx","   \u002F\u002F no type\n",[262,502,503,506,507,510,511,514],{},[265,504,505],{},"type()"," sets several types at once, and ",[265,508,509],{},"addType()"," appends one. Both take the ",[265,512,513],{},"SchemaType"," enum or its string value:",[282,516,518],{"className":284,"code":517,"language":286,"meta":287,"style":287},"Schema::create('id')->type('string', 'integer');\n",[265,519,520],{"__ignoreMap":287},[291,521,522,524,526,528,530,532,535,537,540,543,546,548,550,552,554,557,560,562,564],{"class":293,"line":294},[291,523,267],{"class":334},[291,525,338],{"class":337},[291,527,484],{"class":341},[291,529,345],{"class":320},[291,531,349],{"class":348},[291,533,534],{"class":352},"id",[291,536,349],{"class":348},[291,538,539],{"class":320},")",[291,541,542],{"class":337},"->",[291,544,545],{"class":341},"type",[291,547,345],{"class":320},[291,549,349],{"class":348},[291,551,342],{"class":352},[291,553,349],{"class":348},[291,555,556],{"class":320},",",[291,558,559],{"class":348}," '",[291,561,368],{"class":352},[291,563,349],{"class":348},[291,565,358],{"class":320},[274,567,569],{"id":568},"nullable","Nullable",[262,571,572,575,576,578],{},[265,573,574],{},"nullable()"," works on every schema, including references. Do not add a ",[265,577,472],{}," type by hand: the library writes the\nform each version expects.",[580,581,583,616],"example",{"input":267,"output":582},"3.1.2 \u002F 3.0.4",[584,585,586],"template",{"v-slot:input":287},[282,587,589],{"className":284,"code":588,"language":286,"meta":287,"style":287},"Schema::string('subtitle')->nullable();\n",[265,590,591],{"__ignoreMap":287},[291,592,593,595,597,599,601,603,606,608,610,612,614],{"class":293,"line":294},[291,594,267],{"class":334},[291,596,338],{"class":337},[291,598,342],{"class":341},[291,600,345],{"class":320},[291,602,349],{"class":348},[291,604,605],{"class":352},"subtitle",[291,607,349],{"class":348},[291,609,539],{"class":320},[291,611,542],{"class":337},[291,613,568],{"class":341},[291,615,475],{"class":320},[584,617,618],{"v-slot:output":287},[282,619,623],{"className":620,"code":621,"language":622,"meta":287,"style":287},"language-json shiki shiki-themes material-theme-lighter github-light github-dark","{ \"type\": [\"string\", \"null\"] }\n\n{ \"type\": \"string\", \"nullable\": true }\n","json",[265,624,625,665,669],{"__ignoreMap":287},[291,626,627,630,633,636,639,642,645,647,649,651,653,655,657,659,662],{"class":293,"line":294},[291,628,629],{"class":320},"{",[291,631,632],{"class":305}," \"",[291,634,545],{"class":635},"sseR_",[291,637,638],{"class":305},"\"",[291,640,641],{"class":320},":",[291,643,644],{"class":320}," [",[291,646,638],{"class":348},[291,648,342],{"class":352},[291,650,638],{"class":348},[291,652,556],{"class":320},[291,654,632],{"class":348},[291,656,472],{"class":352},[291,658,638],{"class":348},[291,660,661],{"class":320},"]",[291,663,664],{"class":320}," }\n",[291,666,667],{"class":293,"line":324},[291,668,328],{"emptyLinePlaceholder":327},[291,670,671,673,675,677,679,681,683,685,687,689,691,693,695,697,700],{"class":293,"line":331},[291,672,629],{"class":320},[291,674,632],{"class":305},[291,676,545],{"class":635},[291,678,638],{"class":305},[291,680,641],{"class":320},[291,682,632],{"class":348},[291,684,342],{"class":352},[291,686,638],{"class":348},[291,688,556],{"class":320},[291,690,632],{"class":305},[291,692,568],{"class":635},[291,694,638],{"class":305},[291,696,641],{"class":320},[291,698,699],{"class":305}," true",[291,701,664],{"class":320},[274,703,705],{"id":704},"formats-and-strings","Formats and strings",[282,707,709],{"className":284,"code":708,"language":286,"meta":287,"style":287},"Schema::string('email')->format('email');\nSchema::string('code')->minLength(3)->maxLength(8)->pattern('^[A-Z]+$');\nSchema::string('published_at')->format('date-time');\nSchema::integer('id')->format('int64');\n",[265,710,711,745,804,838],{"__ignoreMap":287},[291,712,713,715,717,719,721,723,726,728,730,732,735,737,739,741,743],{"class":293,"line":294},[291,714,267],{"class":334},[291,716,338],{"class":337},[291,718,342],{"class":341},[291,720,345],{"class":320},[291,722,349],{"class":348},[291,724,725],{"class":352},"email",[291,727,349],{"class":348},[291,729,539],{"class":320},[291,731,542],{"class":337},[291,733,734],{"class":341},"format",[291,736,345],{"class":320},[291,738,349],{"class":348},[291,740,725],{"class":352},[291,742,349],{"class":348},[291,744,358],{"class":320},[291,746,747,749,751,753,755,757,759,761,763,765,768,770,774,776,778,781,783,786,788,790,793,795,797,800,802],{"class":293,"line":324},[291,748,267],{"class":334},[291,750,338],{"class":337},[291,752,342],{"class":341},[291,754,345],{"class":320},[291,756,349],{"class":348},[291,758,265],{"class":352},[291,760,349],{"class":348},[291,762,539],{"class":320},[291,764,542],{"class":337},[291,766,767],{"class":341},"minLength",[291,769,345],{"class":320},[291,771,773],{"class":772},"srdBf","3",[291,775,539],{"class":320},[291,777,542],{"class":337},[291,779,780],{"class":341},"maxLength",[291,782,345],{"class":320},[291,784,785],{"class":772},"8",[291,787,539],{"class":320},[291,789,542],{"class":337},[291,791,792],{"class":341},"pattern",[291,794,345],{"class":320},[291,796,349],{"class":348},[291,798,799],{"class":352},"^[A-Z]+$",[291,801,349],{"class":348},[291,803,358],{"class":320},[291,805,806,808,810,812,814,816,819,821,823,825,827,829,831,834,836],{"class":293,"line":331},[291,807,267],{"class":334},[291,809,338],{"class":337},[291,811,342],{"class":341},[291,813,345],{"class":320},[291,815,349],{"class":348},[291,817,818],{"class":352},"published_at",[291,820,349],{"class":348},[291,822,539],{"class":320},[291,824,542],{"class":337},[291,826,734],{"class":341},[291,828,345],{"class":320},[291,830,349],{"class":348},[291,832,833],{"class":352},"date-time",[291,835,349],{"class":348},[291,837,358],{"class":320},[291,839,840,842,844,846,848,850,852,854,856,858,860,862,864,867,869],{"class":293,"line":361},[291,841,267],{"class":334},[291,843,338],{"class":337},[291,845,368],{"class":341},[291,847,345],{"class":320},[291,849,349],{"class":348},[291,851,534],{"class":352},[291,853,349],{"class":348},[291,855,539],{"class":320},[291,857,542],{"class":337},[291,859,734],{"class":341},[291,861,345],{"class":320},[291,863,349],{"class":348},[291,865,866],{"class":352},"int64",[291,868,349],{"class":348},[291,870,358],{"class":320},[262,872,873,874,877,878,641],{},"Binary content uses ",[265,875,876],{},"contentMediaType()"," and ",[265,879,880],{},"contentEncoding()",[282,882,884],{"className":284,"code":883,"language":286,"meta":287,"style":287},"Schema::string('photo')->contentMediaType('image\u002Fpng');   \u002F\u002F a file\nSchema::string('thumbnail')->contentEncoding('base64');   \u002F\u002F base64 text\n",[265,885,886,924],{"__ignoreMap":287},[291,887,888,890,892,894,896,898,901,903,905,907,910,912,914,917,919,921],{"class":293,"line":294},[291,889,267],{"class":334},[291,891,338],{"class":337},[291,893,342],{"class":341},[291,895,345],{"class":320},[291,897,349],{"class":348},[291,899,900],{"class":352},"photo",[291,902,349],{"class":348},[291,904,539],{"class":320},[291,906,542],{"class":337},[291,908,909],{"class":341},"contentMediaType",[291,911,345],{"class":320},[291,913,349],{"class":348},[291,915,916],{"class":352},"image\u002Fpng",[291,918,349],{"class":348},[291,920,496],{"class":320},[291,922,923],{"class":499},"   \u002F\u002F a file\n",[291,925,926,928,930,932,934,936,939,941,943,945,948,950,952,955,957,959],{"class":293,"line":324},[291,927,267],{"class":334},[291,929,338],{"class":337},[291,931,342],{"class":341},[291,933,345],{"class":320},[291,935,349],{"class":348},[291,937,938],{"class":352},"thumbnail",[291,940,349],{"class":348},[291,942,539],{"class":320},[291,944,542],{"class":337},[291,946,947],{"class":341},"contentEncoding",[291,949,345],{"class":320},[291,951,349],{"class":348},[291,953,954],{"class":352},"base64",[291,956,349],{"class":348},[291,958,496],{"class":320},[291,960,961],{"class":499},"   \u002F\u002F base64 text\n",[274,963,965],{"id":964},"enumerations-and-constants","Enumerations and constants",[282,967,969],{"className":284,"code":968,"language":286,"meta":287,"style":287},"Schema::string('status')\n    ->enum('draft', 'published', 'archived')\n    ->default('draft');\n\nSchema::string('kind')->const('card');\n",[265,970,971,991,1028,1045,1049],{"__ignoreMap":287},[291,972,973,975,977,979,981,983,986,988],{"class":293,"line":294},[291,974,267],{"class":334},[291,976,338],{"class":337},[291,978,342],{"class":341},[291,980,345],{"class":320},[291,982,349],{"class":348},[291,984,985],{"class":352},"status",[291,987,349],{"class":348},[291,989,990],{"class":320},")\n",[291,992,993,996,999,1001,1003,1006,1008,1010,1012,1015,1017,1019,1021,1024,1026],{"class":293,"line":324},[291,994,995],{"class":337},"    ->",[291,997,998],{"class":341},"enum",[291,1000,345],{"class":320},[291,1002,349],{"class":348},[291,1004,1005],{"class":352},"draft",[291,1007,349],{"class":348},[291,1009,556],{"class":320},[291,1011,559],{"class":348},[291,1013,1014],{"class":352},"published",[291,1016,349],{"class":348},[291,1018,556],{"class":320},[291,1020,559],{"class":348},[291,1022,1023],{"class":352},"archived",[291,1025,349],{"class":348},[291,1027,990],{"class":320},[291,1029,1030,1032,1035,1037,1039,1041,1043],{"class":293,"line":331},[291,1031,995],{"class":337},[291,1033,1034],{"class":341},"default",[291,1036,345],{"class":320},[291,1038,349],{"class":348},[291,1040,1005],{"class":352},[291,1042,349],{"class":348},[291,1044,358],{"class":320},[291,1046,1047],{"class":293,"line":361},[291,1048,328],{"emptyLinePlaceholder":327},[291,1050,1051,1053,1055,1057,1059,1061,1064,1066,1068,1070,1073,1075,1077,1080,1082],{"class":293,"line":382},[291,1052,267],{"class":334},[291,1054,338],{"class":337},[291,1056,342],{"class":341},[291,1058,345],{"class":320},[291,1060,349],{"class":348},[291,1062,1063],{"class":352},"kind",[291,1065,349],{"class":348},[291,1067,539],{"class":320},[291,1069,542],{"class":337},[291,1071,1072],{"class":341},"const",[291,1074,345],{"class":320},[291,1076,349],{"class":348},[291,1078,1079],{"class":352},"card",[291,1081,349],{"class":348},[291,1083,358],{"class":320},[262,1085,1086,1089,1090,1093,1094,1096],{},[265,1087,1088],{},"const()"," is written ",[265,1091,1092],{},"enum: [card]"," for OpenAPI 3.0. ",[265,1095,998],{}," is not deduplicated.",[274,1098,1100],{"id":1099},"numbers","Numbers",[282,1102,1104],{"className":284,"code":1103,"language":286,"meta":287,"style":287},"Schema::integer('quantity')->minimum(1)->maximum(100);\nSchema::number('price')->exclusiveMinimum(0)->multipleOf(0.01);\n",[265,1105,1106,1149],{"__ignoreMap":287},[291,1107,1108,1110,1112,1114,1116,1118,1121,1123,1125,1127,1130,1132,1135,1137,1139,1142,1144,1147],{"class":293,"line":294},[291,1109,267],{"class":334},[291,1111,338],{"class":337},[291,1113,368],{"class":341},[291,1115,345],{"class":320},[291,1117,349],{"class":348},[291,1119,1120],{"class":352},"quantity",[291,1122,349],{"class":348},[291,1124,539],{"class":320},[291,1126,542],{"class":337},[291,1128,1129],{"class":341},"minimum",[291,1131,345],{"class":320},[291,1133,1134],{"class":772},"1",[291,1136,539],{"class":320},[291,1138,542],{"class":337},[291,1140,1141],{"class":341},"maximum",[291,1143,345],{"class":320},[291,1145,1146],{"class":772},"100",[291,1148,358],{"class":320},[291,1150,1151,1153,1155,1157,1159,1161,1163,1165,1167,1169,1172,1174,1177,1179,1181,1184,1186,1188,1191,1194],{"class":293,"line":324},[291,1152,267],{"class":334},[291,1154,338],{"class":337},[291,1156,389],{"class":341},[291,1158,345],{"class":320},[291,1160,349],{"class":348},[291,1162,396],{"class":352},[291,1164,349],{"class":348},[291,1166,539],{"class":320},[291,1168,542],{"class":337},[291,1170,1171],{"class":341},"exclusiveMinimum",[291,1173,345],{"class":320},[291,1175,1176],{"class":772},"0",[291,1178,539],{"class":320},[291,1180,542],{"class":337},[291,1182,1183],{"class":341},"multipleOf",[291,1185,345],{"class":320},[291,1187,1176],{"class":772},[291,1189,1190],{"class":305},".",[291,1192,1193],{"class":772},"01",[291,1195,358],{"class":320},[262,1197,1198,877,1201,1204,1205,1190],{},[265,1199,1200],{},"exclusiveMinimum()",[265,1202,1203],{},"exclusiveMaximum()"," take the bound itself, as in 3.1. For 3.0 the library writes\n",[265,1206,1207],{},"minimum: 0, exclusiveMinimum: true",[274,1209,1211],{"id":1210},"arrays","Arrays",[580,1213,1215,1280],{"input":267,"output":1214},"toArray()",[584,1216,1217],{"v-slot:input":287},[282,1218,1220],{"className":284,"code":1219,"language":286,"meta":287,"style":287},"Schema::array('tags')\n    ->items(Schema::string())\n    ->minItems(1)\n    ->uniqueItems();\n",[265,1221,1222,1240,1258,1271],{"__ignoreMap":287},[291,1223,1224,1226,1228,1230,1232,1234,1236,1238],{"class":293,"line":294},[291,1225,267],{"class":334},[291,1227,338],{"class":337},[291,1229,430],{"class":341},[291,1231,345],{"class":320},[291,1233,349],{"class":348},[291,1235,437],{"class":352},[291,1237,349],{"class":348},[291,1239,990],{"class":320},[291,1241,1242,1244,1247,1249,1251,1253,1255],{"class":293,"line":324},[291,1243,995],{"class":337},[291,1245,1246],{"class":341},"items",[291,1248,345],{"class":320},[291,1250,267],{"class":334},[291,1252,338],{"class":337},[291,1254,342],{"class":341},[291,1256,1257],{"class":320},"())\n",[291,1259,1260,1262,1265,1267,1269],{"class":293,"line":331},[291,1261,995],{"class":337},[291,1263,1264],{"class":341},"minItems",[291,1266,345],{"class":320},[291,1268,1134],{"class":772},[291,1270,990],{"class":320},[291,1272,1273,1275,1278],{"class":293,"line":361},[291,1274,995],{"class":337},[291,1276,1277],{"class":341},"uniqueItems",[291,1279,475],{"class":320},[584,1281,1282],{"v-slot:output":287},[282,1283,1285],{"className":620,"code":1284,"language":622,"meta":287,"style":287},"{\n  \"type\": \"array\",\n  \"items\": { \"type\": \"string\" },\n  \"minItems\": 1,\n  \"uniqueItems\": true\n}\n",[265,1286,1287,1292,1312,1342,1357,1370],{"__ignoreMap":287},[291,1288,1289],{"class":293,"line":294},[291,1290,1291],{"class":320},"{\n",[291,1293,1294,1297,1299,1301,1303,1305,1307,1309],{"class":293,"line":324},[291,1295,1296],{"class":305},"  \"",[291,1298,545],{"class":635},[291,1300,638],{"class":305},[291,1302,641],{"class":320},[291,1304,632],{"class":348},[291,1306,430],{"class":352},[291,1308,638],{"class":348},[291,1310,1311],{"class":320},",\n",[291,1313,1314,1316,1318,1320,1322,1325,1327,1329,1331,1333,1335,1337,1339],{"class":293,"line":331},[291,1315,1296],{"class":305},[291,1317,1246],{"class":635},[291,1319,638],{"class":305},[291,1321,641],{"class":320},[291,1323,1324],{"class":320}," {",[291,1326,632],{"class":305},[291,1328,545],{"class":334},[291,1330,638],{"class":305},[291,1332,641],{"class":320},[291,1334,632],{"class":348},[291,1336,342],{"class":352},[291,1338,638],{"class":348},[291,1340,1341],{"class":320}," },\n",[291,1343,1344,1346,1348,1350,1352,1355],{"class":293,"line":361},[291,1345,1296],{"class":305},[291,1347,1264],{"class":635},[291,1349,638],{"class":305},[291,1351,641],{"class":320},[291,1353,1354],{"class":772}," 1",[291,1356,1311],{"class":320},[291,1358,1359,1361,1363,1365,1367],{"class":293,"line":382},[291,1360,1296],{"class":305},[291,1362,1277],{"class":635},[291,1364,638],{"class":305},[291,1366,641],{"class":320},[291,1368,1369],{"class":305}," true\n",[291,1371,1372],{"class":293,"line":403},[291,1373,1374],{"class":320},"}\n",[262,1376,1377,1378,1381,1382,1385,1386,1389,1390,1393,1394,1397,1398,1401,1402,1405,1406,1409],{},"Also: ",[265,1379,1380],{},"maxItems()",", ",[265,1383,1384],{},"prefixItems()"," for tuples, ",[265,1387,1388],{},"contains()"," with ",[265,1391,1392],{},"minContains()"," \u002F ",[265,1395,1396],{},"maxContains()",", and\n",[265,1399,1400],{},"unevaluatedItems()",". ",[265,1403,1404],{},"items()"," accepts a boolean: ",[265,1407,1408],{},"items(false)"," forbids any item.",[274,1411,233],{"id":1412},"objects",[262,1414,1415,1416,1419],{},"Properties are schemas keyed by their objectId; ",[265,1417,1418],{},"required()"," lists the required names:",[282,1421,1423],{"className":284,"code":1422,"language":286,"meta":287,"style":287},"Schema::object('User')\n    ->properties(\n        Schema::integer('id')->format('int64')->readOnly(),\n        Schema::string('email')->format('email'),\n        Schema::string('password')->writeOnly(),\n        Schema::object('metadata')\n            ->additionalProperties(Schema::string()),\n    )\n    ->required('id', 'email');\n",[265,1424,1425,1444,1454,1495,1528,1554,1573,1592,1597],{"__ignoreMap":287},[291,1426,1427,1429,1431,1433,1435,1437,1440,1442],{"class":293,"line":294},[291,1428,267],{"class":334},[291,1430,338],{"class":337},[291,1432,451],{"class":341},[291,1434,345],{"class":320},[291,1436,349],{"class":348},[291,1438,1439],{"class":352},"User",[291,1441,349],{"class":348},[291,1443,990],{"class":320},[291,1445,1446,1448,1451],{"class":293,"line":324},[291,1447,995],{"class":337},[291,1449,1450],{"class":341},"properties",[291,1452,1453],{"class":320},"(\n",[291,1455,1456,1459,1461,1463,1465,1467,1469,1471,1473,1475,1477,1479,1481,1483,1485,1487,1489,1492],{"class":293,"line":331},[291,1457,1458],{"class":334},"        Schema",[291,1460,338],{"class":337},[291,1462,368],{"class":341},[291,1464,345],{"class":320},[291,1466,349],{"class":348},[291,1468,534],{"class":352},[291,1470,349],{"class":348},[291,1472,539],{"class":320},[291,1474,542],{"class":337},[291,1476,734],{"class":341},[291,1478,345],{"class":320},[291,1480,349],{"class":348},[291,1482,866],{"class":352},[291,1484,349],{"class":348},[291,1486,539],{"class":320},[291,1488,542],{"class":337},[291,1490,1491],{"class":341},"readOnly",[291,1493,1494],{"class":320},"(),\n",[291,1496,1497,1499,1501,1503,1505,1507,1509,1511,1513,1515,1517,1519,1521,1523,1525],{"class":293,"line":361},[291,1498,1458],{"class":334},[291,1500,338],{"class":337},[291,1502,342],{"class":341},[291,1504,345],{"class":320},[291,1506,349],{"class":348},[291,1508,725],{"class":352},[291,1510,349],{"class":348},[291,1512,539],{"class":320},[291,1514,542],{"class":337},[291,1516,734],{"class":341},[291,1518,345],{"class":320},[291,1520,349],{"class":348},[291,1522,725],{"class":352},[291,1524,349],{"class":348},[291,1526,1527],{"class":320},"),\n",[291,1529,1530,1532,1534,1536,1538,1540,1543,1545,1547,1549,1552],{"class":293,"line":382},[291,1531,1458],{"class":334},[291,1533,338],{"class":337},[291,1535,342],{"class":341},[291,1537,345],{"class":320},[291,1539,349],{"class":348},[291,1541,1542],{"class":352},"password",[291,1544,349],{"class":348},[291,1546,539],{"class":320},[291,1548,542],{"class":337},[291,1550,1551],{"class":341},"writeOnly",[291,1553,1494],{"class":320},[291,1555,1556,1558,1560,1562,1564,1566,1569,1571],{"class":293,"line":403},[291,1557,1458],{"class":334},[291,1559,338],{"class":337},[291,1561,451],{"class":341},[291,1563,345],{"class":320},[291,1565,349],{"class":348},[291,1567,1568],{"class":352},"metadata",[291,1570,349],{"class":348},[291,1572,990],{"class":320},[291,1574,1575,1578,1581,1583,1585,1587,1589],{"class":293,"line":423},[291,1576,1577],{"class":337},"            ->",[291,1579,1580],{"class":341},"additionalProperties",[291,1582,345],{"class":320},[291,1584,267],{"class":334},[291,1586,338],{"class":337},[291,1588,342],{"class":341},[291,1590,1591],{"class":320},"()),\n",[291,1593,1594],{"class":293,"line":444},[291,1595,1596],{"class":320},"    )\n",[291,1598,1599,1601,1604,1606,1608,1610,1612,1614,1616,1618,1620],{"class":293,"line":465},[291,1600,995],{"class":337},[291,1602,1603],{"class":341},"required",[291,1605,345],{"class":320},[291,1607,349],{"class":348},[291,1609,534],{"class":352},[291,1611,349],{"class":348},[291,1613,556],{"class":320},[291,1615,559],{"class":348},[291,1617,725],{"class":352},[291,1619,349],{"class":348},[291,1621,358],{"class":320},[1623,1624,1625],"warning",{},[262,1626,1627,1628,1630,1631,1634],{},"Do not call ",[265,1629,1418],{}," without names: it writes ",[265,1632,1633],{},"required: []",", which OpenAPI 3.0 rejects.",[1636,1637,1638,1651],"table",{},[1639,1640,1641],"thead",{},[1642,1643,1644,1648],"tr",{},[1645,1646,1647],"th",{},"Method",[1645,1649,1650],{},"Purpose",[1652,1653,1654,1669,1679,1689,1701,1713,1723],"tbody",{},[1642,1655,1656,1662],{},[1657,1658,1659],"td",{},[265,1660,1661],{},"additionalProperties(SchemaContract|bool|null)",[1657,1663,1664,1665,1668],{},"Schema of the other properties; ",[265,1666,1667],{},"false"," forbids them",[1642,1670,1671,1676],{},[1657,1672,1673],{},[265,1674,1675],{},"patternProperties(SchemaContract ...)",[1657,1677,1678],{},"Schemas keyed by a regular expression (the objectId)",[1642,1680,1681,1686],{},[1657,1682,1683],{},[265,1684,1685],{},"propertyNames(SchemaContract|bool|null)",[1657,1687,1688],{},"Schema of the property names",[1642,1690,1691,1699],{},[1657,1692,1693,1381,1696],{},[265,1694,1695],{},"minProperties(?int)",[265,1697,1698],{},"maxProperties(?int)",[1657,1700],{},[1642,1702,1703,1708],{},[1657,1704,1705],{},[265,1706,1707],{},"dependentRequired(array)",[1657,1709,1710],{},[265,1711,1712],{},"['credit_card' => ['billing_address']]",[1642,1714,1715,1720],{},[1657,1716,1717],{},[265,1718,1719],{},"dependentSchemas(SchemaContract ...)",[1657,1721,1722],{},"Schema applied when the property (objectId) is present",[1642,1724,1725,1730],{},[1657,1726,1727],{},[265,1728,1729],{},"unevaluatedProperties(SchemaContract|bool|null)",[1657,1731],{},[274,1733,1734],{"id":1568},"Metadata",[282,1736,1738],{"className":284,"code":1737,"language":286,"meta":287,"style":287},"Schema::string('nickname')\n    ->title('Nickname')\n    ->description('Shown instead of the name')\n    ->example('ada')\n    ->deprecated();\n",[265,1739,1740,1759,1777,1795,1812],{"__ignoreMap":287},[291,1741,1742,1744,1746,1748,1750,1752,1755,1757],{"class":293,"line":294},[291,1743,267],{"class":334},[291,1745,338],{"class":337},[291,1747,342],{"class":341},[291,1749,345],{"class":320},[291,1751,349],{"class":348},[291,1753,1754],{"class":352},"nickname",[291,1756,349],{"class":348},[291,1758,990],{"class":320},[291,1760,1761,1763,1766,1768,1770,1773,1775],{"class":293,"line":324},[291,1762,995],{"class":337},[291,1764,1765],{"class":341},"title",[291,1767,345],{"class":320},[291,1769,349],{"class":348},[291,1771,1772],{"class":352},"Nickname",[291,1774,349],{"class":348},[291,1776,990],{"class":320},[291,1778,1779,1781,1784,1786,1788,1791,1793],{"class":293,"line":331},[291,1780,995],{"class":337},[291,1782,1783],{"class":341},"description",[291,1785,345],{"class":320},[291,1787,349],{"class":348},[291,1789,1790],{"class":352},"Shown instead of the name",[291,1792,349],{"class":348},[291,1794,990],{"class":320},[291,1796,1797,1799,1801,1803,1805,1808,1810],{"class":293,"line":361},[291,1798,995],{"class":337},[291,1800,580],{"class":341},[291,1802,345],{"class":320},[291,1804,349],{"class":348},[291,1806,1807],{"class":352},"ada",[291,1809,349],{"class":348},[291,1811,990],{"class":320},[291,1813,1814,1816,1819],{"class":293,"line":382},[291,1815,995],{"class":337},[291,1817,1818],{"class":341},"deprecated",[291,1820,475],{"class":320},[262,1822,1823,1826,1827,1829,1830,1833,1834,1837,1838,1841,1842,1190],{},[265,1824,1825],{},"examples()"," on a schema takes plain values (a JSON Schema list), unlike the ",[265,1828,1825],{}," of ",[265,1831,1832],{},"MediaType"," and\n",[265,1835,1836],{},"Parameter",", which take ",[265,1839,1840],{},"Example"," objects. For 3.0, the first value is written as ",[265,1843,580],{},[282,1845,1847],{"className":284,"code":1846,"language":286,"meta":287,"style":287},"Schema::number('price')->examples(9.99, 20);\n",[265,1848,1849],{"__ignoreMap":287},[291,1850,1851,1853,1855,1857,1859,1861,1863,1865,1867,1869,1872,1874,1877,1879,1882,1884,1887],{"class":293,"line":294},[291,1852,267],{"class":334},[291,1854,338],{"class":337},[291,1856,389],{"class":341},[291,1858,345],{"class":320},[291,1860,349],{"class":348},[291,1862,396],{"class":352},[291,1864,349],{"class":348},[291,1866,539],{"class":320},[291,1868,542],{"class":337},[291,1870,1871],{"class":341},"examples",[291,1873,345],{"class":320},[291,1875,1876],{"class":772},"9",[291,1878,1190],{"class":305},[291,1880,1881],{"class":772},"99",[291,1883,556],{"class":320},[291,1885,1886],{"class":772}," 20",[291,1888,358],{"class":320},[262,1890,1377,1891,1381,1894,1381,1897,1381,1900,877,1903,1906,1907,272],{},[265,1892,1893],{},"readOnly()",[265,1895,1896],{},"writeOnly()",[265,1898,1899],{},"externalDocs()",[265,1901,1902],{},"xml(Xml)",[265,1904,1905],{},"comment()"," (",[265,1908,1909],{},"$comment",[274,1911,1913],{"id":1912},"keywords-from-openapi-31","Keywords from OpenAPI 3.1",[262,1915,1916,1917,1381,1920,1381,1923,1311,1926,1381,1929,1381,1932,1381,1935,1381,1938,1311,1941,1381,1944,877,1947,1949,1950,1953,1954,1190],{},"These keywords come from JSON Schema 2020-12 and have no 3.0 form: ",[265,1918,1919],{},"prefixItems",[265,1921,1922],{},"contains",[265,1924,1925],{},"minContains",[265,1927,1928],{},"maxContains",[265,1930,1931],{},"unevaluatedItems",[265,1933,1934],{},"patternProperties",[265,1936,1937],{},"propertyNames",[265,1939,1940],{},"unevaluatedProperties",[265,1942,1943],{},"dependentRequired",[265,1945,1946],{},"dependentSchemas",[265,1948,1909],{},". Written for 3.0, they throw an ",[265,1951,1952],{},"UnsupportedFeatureException","\nin strict mode, or are dropped in lenient mode; see\n",[270,1955,201],{"href":202},[274,1957,1959],{"id":1958},"boolean-schemas","Boolean schemas",[262,1961,1962,1963,1966,1967,1969,1970,1973,1974,1381,1976,1381,1979,1381,1981,1381,1984,1381,1987,1381,1990,1993,1994,877,1997,1190],{},"Wherever JSON Schema accepts a schema, ",[265,1964,1965],{},"true"," (anything) and ",[265,1968,1667],{}," (nothing) are accepted where the method takes a\n",[265,1971,1972],{},"bool",": ",[265,1975,1404],{},[265,1977,1978],{},"additionalProperties()",[265,1980,1388],{},[265,1982,1983],{},"not()",[265,1985,1986],{},"if()",[265,1988,1989],{},"then()",[265,1991,1992],{},"else()","… For 3.0 they are\nwritten ",[265,1995,1996],{},"{}",[265,1998,1999],{},"{\"not\": {}}",[2001,2002,2003],"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 .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}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 .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 .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 .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 .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":287,"searchDepth":331,"depth":331,"links":2005},[2006,2007,2008,2009,2010,2011,2012,2013,2014,2015],{"id":276,"depth":324,"text":277},{"id":568,"depth":324,"text":569},{"id":704,"depth":324,"text":705},{"id":964,"depth":324,"text":965},{"id":1099,"depth":324,"text":1100},{"id":1210,"depth":324,"text":1211},{"id":1412,"depth":324,"text":233},{"id":1568,"depth":324,"text":1734},{"id":1912,"depth":324,"text":1913},{"id":1958,"depth":324,"text":1959},"Describe values with Schema - types, nullable, formats, constraints, objects, arrays and metadata.","md",{},"---\ntitle: Types and constraints\ndescription: Describe values with Schema - types, nullable, formats, constraints, objects, arrays and metadata.\n---\n\n`Schema` describes a value, with the JSON Schema 2020-12 vocabulary of OpenAPI 3.1. Write the 3.1 model; for 3.0 the\nlibrary converts what differs (see [Conversions](\u002Fopenapi-writer\u002Fversions-and-output\u002Fconversions)).\n\n## Types\n\nOne shortcut per type; the argument is the objectId (property or component name):\n\n```php\nuse Ark4ne\\OpenApiWriter\\Objects\\Schema;\n\nSchema::string('name');\nSchema::integer('age');\nSchema::number('price');\nSchema::boolean('active');\nSchema::array('tags');\nSchema::object('address');\nSchema::null();\nSchema::create('anything');   \u002F\u002F no type\n```\n\n`type()` sets several types at once, and `addType()` appends one. Both take the `SchemaType` enum or its string value:\n\n```php\nSchema::create('id')->type('string', 'integer');\n```\n\n## Nullable\n\n`nullable()` works on every schema, including references. Do not add a `null` type by hand: the library writes the\nform each version expects.\n\n::example{input=\"Schema\" output=\"3.1.2 \u002F 3.0.4\"}\n#input\n```php\nSchema::string('subtitle')->nullable();\n```\n#output\n```json\n{ \"type\": [\"string\", \"null\"] }\n\n{ \"type\": \"string\", \"nullable\": true }\n```\n::\n\n## Formats and strings\n\n```php\nSchema::string('email')->format('email');\nSchema::string('code')->minLength(3)->maxLength(8)->pattern('^[A-Z]+$');\nSchema::string('published_at')->format('date-time');\nSchema::integer('id')->format('int64');\n```\n\nBinary content uses `contentMediaType()` and `contentEncoding()`:\n\n```php\nSchema::string('photo')->contentMediaType('image\u002Fpng');   \u002F\u002F a file\nSchema::string('thumbnail')->contentEncoding('base64');   \u002F\u002F base64 text\n```\n\n## Enumerations and constants\n\n```php\nSchema::string('status')\n    ->enum('draft', 'published', 'archived')\n    ->default('draft');\n\nSchema::string('kind')->const('card');\n```\n\n`const()` is written `enum: [card]` for OpenAPI 3.0. `enum` is not deduplicated.\n\n## Numbers\n\n```php\nSchema::integer('quantity')->minimum(1)->maximum(100);\nSchema::number('price')->exclusiveMinimum(0)->multipleOf(0.01);\n```\n\n`exclusiveMinimum()` and `exclusiveMaximum()` take the bound itself, as in 3.1. For 3.0 the library writes\n`minimum: 0, exclusiveMinimum: true`.\n\n## Arrays\n\n::example{input=\"Schema\" output=\"toArray()\"}\n#input\n```php\nSchema::array('tags')\n    ->items(Schema::string())\n    ->minItems(1)\n    ->uniqueItems();\n```\n#output\n```json\n{\n  \"type\": \"array\",\n  \"items\": { \"type\": \"string\" },\n  \"minItems\": 1,\n  \"uniqueItems\": true\n}\n```\n::\n\nAlso: `maxItems()`, `prefixItems()` for tuples, `contains()` with `minContains()` \u002F `maxContains()`, and\n`unevaluatedItems()`. `items()` accepts a boolean: `items(false)` forbids any item.\n\n## Objects\n\nProperties are schemas keyed by their objectId; `required()` lists the required names:\n\n```php\nSchema::object('User')\n    ->properties(\n        Schema::integer('id')->format('int64')->readOnly(),\n        Schema::string('email')->format('email'),\n        Schema::string('password')->writeOnly(),\n        Schema::object('metadata')\n            ->additionalProperties(Schema::string()),\n    )\n    ->required('id', 'email');\n```\n\n::warning\nDo not call `required()` without names: it writes `required: []`, which OpenAPI 3.0 rejects.\n::\n\n| Method | Purpose |\n| --- | --- |\n| `additionalProperties(SchemaContract\\|bool\\|null)` | Schema of the other properties; `false` forbids them |\n| `patternProperties(SchemaContract ...)` | Schemas keyed by a regular expression (the objectId) |\n| `propertyNames(SchemaContract\\|bool\\|null)` | Schema of the property names |\n| `minProperties(?int)`, `maxProperties(?int)` | |\n| `dependentRequired(array)` | `['credit_card' => ['billing_address']]` |\n| `dependentSchemas(SchemaContract ...)` | Schema applied when the property (objectId) is present |\n| `unevaluatedProperties(SchemaContract\\|bool\\|null)` | |\n\n## Metadata\n\n```php\nSchema::string('nickname')\n    ->title('Nickname')\n    ->description('Shown instead of the name')\n    ->example('ada')\n    ->deprecated();\n```\n\n`examples()` on a schema takes plain values (a JSON Schema list), unlike the `examples()` of `MediaType` and\n`Parameter`, which take `Example` objects. For 3.0, the first value is written as `example`.\n\n```php\nSchema::number('price')->examples(9.99, 20);\n```\n\nAlso: `readOnly()`, `writeOnly()`, `externalDocs()`, `xml(Xml)` and `comment()` (`$comment`).\n\n## Keywords from OpenAPI 3.1\n\nThese keywords come from JSON Schema 2020-12 and have no 3.0 form: `prefixItems`, `contains`, `minContains`,\n`maxContains`, `unevaluatedItems`, `patternProperties`, `propertyNames`, `unevaluatedProperties`,\n`dependentRequired`, `dependentSchemas` and `$comment`. Written for 3.0, they throw an `UnsupportedFeatureException`\nin strict mode, or are dropped in lenient mode; see\n[Strict and lenient](\u002Fopenapi-writer\u002Fversions-and-output\u002Fstrict-and-lenient).\n\n## Boolean schemas\n\nWherever JSON Schema accepts a schema, `true` (anything) and `false` (nothing) are accepted where the method takes a\n`bool`: `items()`, `additionalProperties()`, `contains()`, `not()`, `if()`, `then()`, `else()`… For 3.0 they are\nwritten `{}` and `{\"not\": {}}`.\n",{"title":175,"description":2016},"t9wCerWkfXaor1XuxXQg_7Os_ikrJzAkYiA7hID_baU",[2023,2025],{"title":166,"path":167,"stem":168,"description":2024,"children":-1},"Describe the requests your API sends - webhooks outside any call, callbacks in reaction to one.",{"title":179,"path":180,"stem":181,"description":2026,"children":-1},"Combine schemas with allOf, oneOf and anyOf, add a discriminator, and use generic envelopes.",1795438900994]