Skip to content

Commit 99eb5f7

Browse files
authored
Merge pull request #780 from BitGo/DX-439-fix-openapi-tests
test: fix `openapi.test.ts` to properly test `@example` tag behaviour
2 parents a55c4b2 + a6f530a commit 99eb5f7

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)