Skip to content

Commit a6f530a

Browse files
author
Ansh Chaturvedi
committed
test: fix openapi.test.ts to properly test @example tag behaviour
1 parent 743e3d9 commit a6f530a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,7 @@ export const route = h.httpRoute({
20542054
query: {
20552055
/**
20562056
* This is a bar param.
2057-
* @example { "foo": "bar" }
2057+
* @example "{ 'foo': 'bar' }"
20582058
*/
20592059
bar: t.record(t.string, t.string),
20602060
},
@@ -2103,6 +2103,7 @@ testCase('route with descriptions, patterns, and examples', ROUTE_WITH_DESCRIPTI
21032103
required: true,
21042104
schema: {
21052105
type: 'object',
2106+
example: "{ 'foo': 'bar' }",
21062107
additionalProperties: {
21072108
type: 'string'
21082109
}

0 commit comments

Comments
 (0)