Skip to content

Commit

Permalink
Merge pull request #780 from BitGo/DX-439-fix-openapi-tests
Browse files Browse the repository at this point in the history
test: fix `openapi.test.ts` to properly test `@example` tag behaviour
  • Loading branch information
bitgopatmcl authored Jun 4, 2024
2 parents a55c4b2 + a6f530a commit 99eb5f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/openapi-generator/test/openapi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,7 @@ export const route = h.httpRoute({
query: {
/**
* This is a bar param.
* @example { "foo": "bar" }
* @example "{ 'foo': 'bar' }"
*/
bar: t.record(t.string, t.string),
},
Expand Down Expand Up @@ -2103,6 +2103,7 @@ testCase('route with descriptions, patterns, and examples', ROUTE_WITH_DESCRIPTI
required: true,
schema: {
type: 'object',
example: "{ 'foo': 'bar' }",
additionalProperties: {
type: 'string'
}
Expand Down

0 comments on commit 99eb5f7

Please sign in to comment.