Skip to content

Commit 91affcd

Browse files
committed
fix: compiler type confusion
the cast should not be required but helps
1 parent f8a5cfa commit 91affcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: json-schema
2-
version: 1.3.0
2+
version: 1.3.1
33

44
development_dependencies:
55
ameba:

src/json-schema.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module JSON
2626
# all we know is that it can be parsed as JSON
2727
{{key}}: { enum: [
2828
{% for const in ivar.constants %}
29-
JSON.parse({{converter.resolve}}.to_json({{ivar.name}}::{{const}})),
29+
JSON.parse({{converter.resolve}}.to_json({{ivar.name}}::{{const}}).as(String)),
3030
{% end %}
3131
]},
3232
{% else %}

0 commit comments

Comments
 (0)