Skip to content

Commit

Permalink
test: fix openapi.test.ts to properly test @example tag behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
anshchaturvedi committed Jun 3, 2024
1 parent 743e3d9 commit a6f530a
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 a6f530a

Please sign in to comment.