Skip to content

Commit cbf2f37

Browse files
committed
feat: adds version 3.2.0 to the playground
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 6b4d429 commit cbf2f37

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/compiler/.scripts/build-init-templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const builtInTemplates: Record<string, InitTemplate> = {
2020
label: "OpenAPI 3.1 document",
2121
options: {
2222
"emitter-output-dir": "{output-dir}/schema",
23-
"openapi-versions": ["3.1.0"],
23+
"openapi-versions": ["3.2.0"],
2424
},
2525
},
2626
"@typespec/http-client-csharp": {

packages/compiler/templates/scaffolding.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"options": {
1717
"emitter-output-dir": "{output-dir}/schema",
1818
"openapi-versions": [
19-
"3.1.0"
19+
"3.2.0"
2020
]
2121
}
2222
},
@@ -200,4 +200,4 @@
200200
}
201201
]
202202
}
203-
}
203+
}

packages/openapi3/src/lib.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,18 @@ const EmitterOptionsSchema: JSONSchemaType<OpenAPI3EmitterOptions> = {
167167
].join("\n"),
168168
},
169169
"openapi-versions": {
170+
title: "OpenAPI Versions",
170171
type: "array",
171172
items: {
172173
type: "string",
173-
enum: ["3.0.0", "3.1.0"],
174+
enum: ["3.0.0", "3.1.0", "3.2.0"],
174175
nullable: true,
175176
description: "The versions of OpenAPI to emit. Defaults to `[3.0.0]`",
176177
},
177178
nullable: true,
178179
uniqueItems: true,
179180
minItems: 1,
181+
default: ["3.0.0"],
180182
},
181183
"new-line": {
182184
type: "string",

0 commit comments

Comments
 (0)