Skip to content

Commit

Permalink
fix(scalars): Latitude and Longitude inconsistent types (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksrc committed Mar 18, 2024
1 parent fae46bb commit d8fb719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/scalars/Latitude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const GraphQLLatitude = /*#__PURE__*/ new GraphQLScalarType({
return validate(ast.value, ast);
},
extensions: {
codegenScalarType: 'string',
codegenScalarType: 'string | number',
jsonSchema: {
title: 'Latitude',
type: 'number',
Expand Down
1 change: 1 addition & 0 deletions src/scalars/Longitude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const GraphQLLongitude = /*#__PURE__*/ new GraphQLScalarType({
extensions: {
codegenScalarType: 'string | number',
jsonSchema: {
title: 'Longitude',
type: 'number',
minimum: MIN_LON,
maximum: MAX_LON,
Expand Down

0 comments on commit d8fb719

Please sign in to comment.