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

Supporting Json as a scalar type #537

Closed
sandeepatil1288 opened this issue Nov 11, 2022 · 2 comments
Closed

Supporting Json as a scalar type #537

sandeepatil1288 opened this issue Nov 11, 2022 · 2 comments

Comments

@sandeepatil1288
Copy link

Json would mean all the following options to be supported,

  1. "String" -> String
  2. {"Key": Value} -> map[string]interface
  3. []String -> []interface

To represent this as scalar type we might need it to be interface{}
Since we cannot add methods to interface{}, it seems limitation on how we define a scalar type.

Please suggest way forward.

PS: I have checked Issue-252, it only discusses about map version.

@pavelnikolov
Copy link
Member

Could you, please, give an actual schema and a resolver?

@pavelnikolov
Copy link
Member

Could you, please, give an actual schema and a resolver? I am going close this issue since it doesn't give enough details and it is not an issue with the library. Feel free to open another issue with an example schema and resolver describing your problem.

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

No branches or pull requests

2 participants