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

Examples for String fields should not get converted to numbers. #915

Open
Crim opened this issue Dec 20, 2023 · 1 comment
Open

Examples for String fields should not get converted to numbers. #915

Crim opened this issue Dec 20, 2023 · 1 comment

Comments

@Crim
Copy link

Crim commented Dec 20, 2023

Defined Metadata

epc: String @spectaql(options: [{ key: "example", value: "303404673001200000000002" }])

Generated output

image

Expectation

I would expect the example to render as a String "303404673001200000000002" and not be attempted to converted to a number.

@Crim
Copy link
Author

Crim commented Dec 20, 2023

it looks like this can be worked around by defining the metadata like:

epc: String @spectaql(options: [{ key: "example", value: "\"303404673001200000000002\"" }])

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

1 participant