Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/openapi-generator/src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function convertRoutesToOpenAPI(
);

return {
openapi: '3.0.0',
openapi: '3.0.3',
info,
paths,
components: {
Expand Down
18 changes: 9 additions & 9 deletions packages/openapi-generator/test/openapi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const internalRoute = h.httpRoute({
`;

testCase('simple route', SIMPLE, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down Expand Up @@ -207,7 +207,7 @@ export const route = h.httpRoute({
`;

testCase('request body route', REQUEST_BODY, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down Expand Up @@ -278,7 +278,7 @@ export const route = h.httpRoute({
`;

testCase('request union route', UNION, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down Expand Up @@ -357,7 +357,7 @@ export const route = h.httpRoute({
`;

testCase('nullable property route', NULLABLE_PROPERTY, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down Expand Up @@ -433,7 +433,7 @@ export const route = h.httpRoute({
`;

testCase('source file with a header comment', HEADER_COMMENT, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down Expand Up @@ -492,7 +492,7 @@ export const route = h.httpRoute({

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

testCase('request body ref', SCHEMA_REF, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down Expand Up @@ -632,7 +632,7 @@ const Bar = Foo;
`;

testCase('request body double ref', SCHEMA_DOUBLE_REF, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down Expand Up @@ -731,7 +731,7 @@ export const route = h.httpRoute({
`;

testCase('schema parameter with title tag', TITLE_TAG, {
openapi: '3.0.0',
openapi: '3.0.3',
info: {
title: 'Test',
version: '1.0.0',
Expand Down