Skip to content

Commit babbf9a

Browse files
author
Ifeora Okechukwu
committed
signed-off: added strict scalar types based on openapi schema object for input type
Signed-off-by: Ifeora Okechukwu <ifeora@deimos.co.za>
1 parent 9d19d03 commit babbf9a

40 files changed

+1628
-139
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { GraphQLScalarType } from 'graphql';
2+
import { StrictScalarNumberConfig } from '../types/strict_scalars';
3+
export declare const createFloatScalar: <TInternal = string, TExternal = string>(config: StrictScalarNumberConfig) => GraphQLScalarType;

packages/openapi-to-graphql/lib/scalar_validators/StrictFloat.js

Lines changed: 89 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/scalar_validators/StrictFloat.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { GraphQLScalarType } from 'graphql';
2+
import { StrictScalarNumberConfig } from '../types/strict_scalars';
3+
export declare const createIntScalar: <TInternal = string, TExternal = string>(config: StrictScalarNumberConfig) => GraphQLScalarType;

packages/openapi-to-graphql/lib/scalar_validators/StrictInt.js

Lines changed: 88 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/scalar_validators/StrictInt.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { GraphQLScalarType } from 'graphql';
2+
import { StrictScalarStringConfig } from '../types/strict_scalars';
3+
export declare const createStringScalar: <TInternal = string, TExternal = string>(config: StrictScalarStringConfig) => GraphQLScalarType;

packages/openapi-to-graphql/lib/scalar_validators/StrictString.js

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

0 commit comments

Comments
 (0)