anvilco/spectaql

Examples for String fields should not get converted to numbers.

Crim opened this issue · 1 comments

Crim commented

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 commented

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

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