Skip to content

Commit fe69f94

Browse files
Refactor: Bump OpenAPI version to 3.0.3
1 parent 6e00515 commit fe69f94

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/openapi-generator/src/openapi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export function convertRoutesToOpenAPI(
211211
);
212212

213213
return {
214-
openapi: '3.0.0',
214+
openapi: '3.0.3',
215215
info,
216216
paths,
217217
components: {

packages/openapi-generator/test/openapi.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const internalRoute = h.httpRoute({
109109
`;
110110

111111
testCase('simple route', SIMPLE, {
112-
openapi: '3.0.0',
112+
openapi: '3.0.3',
113113
info: {
114114
title: 'Test',
115115
version: '1.0.0',
@@ -207,7 +207,7 @@ export const route = h.httpRoute({
207207
`;
208208

209209
testCase('request body route', REQUEST_BODY, {
210-
openapi: '3.0.0',
210+
openapi: '3.0.3',
211211
info: {
212212
title: 'Test',
213213
version: '1.0.0',
@@ -278,7 +278,7 @@ export const route = h.httpRoute({
278278
`;
279279

280280
testCase('request union route', UNION, {
281-
openapi: '3.0.0',
281+
openapi: '3.0.3',
282282
info: {
283283
title: 'Test',
284284
version: '1.0.0',
@@ -357,7 +357,7 @@ export const route = h.httpRoute({
357357
`;
358358

359359
testCase('nullable property route', NULLABLE_PROPERTY, {
360-
openapi: '3.0.0',
360+
openapi: '3.0.3',
361361
info: {
362362
title: 'Test',
363363
version: '1.0.0',
@@ -433,7 +433,7 @@ export const route = h.httpRoute({
433433
`;
434434

435435
testCase('source file with a header comment', HEADER_COMMENT, {
436-
openapi: '3.0.0',
436+
openapi: '3.0.3',
437437
info: {
438438
title: 'Test',
439439
version: '1.0.0',
@@ -492,7 +492,7 @@ export const route = h.httpRoute({
492492

493493
// Test that `required` is not emitted as an empty array
494494
testCase('object with no required properties', EMPTY_REQUIRED, {
495-
openapi: '3.0.0',
495+
openapi: '3.0.3',
496496
info: {
497497
title: 'Test',
498498
version: '1.0.0',
@@ -561,7 +561,7 @@ const Foo = t.type({ foo: t.string });
561561
`;
562562

563563
testCase('request body ref', SCHEMA_REF, {
564-
openapi: '3.0.0',
564+
openapi: '3.0.3',
565565
info: {
566566
title: 'Test',
567567
version: '1.0.0',
@@ -632,7 +632,7 @@ const Bar = Foo;
632632
`;
633633

634634
testCase('request body double ref', SCHEMA_DOUBLE_REF, {
635-
openapi: '3.0.0',
635+
openapi: '3.0.3',
636636
info: {
637637
title: 'Test',
638638
version: '1.0.0',
@@ -731,7 +731,7 @@ export const route = h.httpRoute({
731731
`;
732732

733733
testCase('schema parameter with title tag', TITLE_TAG, {
734-
openapi: '3.0.0',
734+
openapi: '3.0.3',
735735
info: {
736736
title: 'Test',
737737
version: '1.0.0',

0 commit comments

Comments
 (0)