We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc321b3 commit 0b68264Copy full SHA for 0b68264
1 file changed
lib/path.ts
@@ -1,4 +1,4 @@
1
-import * as assert from 'node:assert';
+import { strict } from 'node:assert';
2
import { Construct } from 'constructs';
3
import type { OpenAPIV3_1 } from 'openapi-types';
4
import type { Api } from './api.js';
@@ -29,7 +29,7 @@ export class Path<TPath extends string = '/'> extends Construct {
29
options: OperationOptions<TPath>,
30
): this {
31
// make sure we are not duplicating tags
32
- options.tags?.forEach((tag) => assert(!this.options.tags?.has(tag)));
+ options.tags?.forEach((tag) => strict(!this.options.tags?.has(tag)));
33
34
// eslint-disable-next-line no-new
35
new Operation(this, method, {
0 commit comments