Skip to content

Commit 4d517b3

Browse files
author
Ifeora Okechukwu
committed
signedoff: added stricter type/validation checks
Signed-off-by: Ifeora Okechukwu <ifeora@deimos.co.za>
1 parent c506e34 commit 4d517b3

File tree

9 files changed

+163
-106
lines changed

9 files changed

+163
-106
lines changed

packages/openapi-to-graphql/lib/schema_builder.js

Lines changed: 18 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/schema_builder.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/utils.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export declare const mitigations: {
3333
LIMIT_ARGUMENT_NAME_COLLISION: string;
3434
OAUTH_SECURITY_SCHEME: string;
3535
};
36+
export declare function isSafeInteger(n: unknown): n is number;
37+
export declare function isSafeLong(n: unknown): n is number;
38+
export declare function isSafeDate(n: string): boolean;
3639
/**
3740
* get the correct type of a variable
3841
*/

packages/openapi-to-graphql/lib/utils.js

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/utils.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/package-lock.json

Lines changed: 5 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@
6969
"debug": "^4.1.0",
7070
"deep-equal": "^2.0.1",
7171
"form-urlencoded": "^4.1.1",
72-
"graphql-input-number": "0.0.10",
73-
"graphql-input-string": "0.0.16",
72+
"graphql-scalar": "0.0.11",
7473
"graphql-subscriptions": "^1.1.0",
7574
"graphql-type-json": "^0.2.1",
7675
"jsonpath-plus": "^3.0.0",

0 commit comments

Comments
 (0)