Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added the ability to pass a StringFormat type resolver, so that… #1384

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

paulst-cais
Copy link

@paulst-cais paulst-cais commented May 17, 2024

Status

WIP

Description

Implement a type resolver for strings that also have a format hint

Fix #1383

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

Steps to Test or Reproduce

Need to write tests

… it is possible to pass custom Scalar types to represent different format values.
@melloware melloware added the enhancement New feature or request label May 17, 2024
@melloware melloware added this to the 6.30.0 milestone May 17, 2024
@anymaniax
Copy link
Collaborator

Hello thanks for the contribution. What do you think about doing the same thing as we already do for mocks maybe?

@paulst-cais
Copy link
Author

Hello thanks for the contribution. What do you think about doing the same thing as we already do for mocks maybe?

Sorry I had a look at mocks and not entirely sure what you mean here? Would you be able to elaborate?

Happy to update if you could add some guidance on a better approach.

@melloware melloware modified the milestones: 6.30.0, 6.31.0 Jun 7, 2024
@melloware melloware modified the milestones: 6.31.0, 6.32.0 Jun 24, 2024
@melloware melloware modified the milestones: 6.32.0, 6.33.0 Jul 18, 2024
@melloware
Copy link
Collaborator

Looks like you have a merge conflict

@melloware melloware modified the milestones: 7.0.1, 7.0.2 Aug 7, 2024
@anymaniax
Copy link
Collaborator

what do you think as doing like for the mock have an property in the config format?: Record<string, unknown>; and when it match a hint just replace the type with that one

@dawsonbooth
Copy link
Contributor

Would love to help out where I can here since I need this same change soon. Any good place for me to start?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add ability to pass custom types for a string given a format hint
4 participants