You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yaml_data = %(10:
description:
de: 'Ein Hauptreihenstern einer Klasse von Himmelskörpern, die sich typischerweise durch eine weiße oder weiß-gelbe Färbung auszeichnen. Die Energieerzeugung dieser Sterne wird durch Wasserstofffusion angetrieben und sie sind oft sehr heiß und hell.'graphicID: 21466groupID: 6mass: 1000000000000000000name:
de: Sun F0 (White)en: Sun F0 (White)fr: Soleil F0 (blanche)ja: 恒星F0(ホワイト)ru: Sun F0 (White)zh: 恒星F0 (白色)portionSize: 1published: falseradius: 10000soundID: 20098volume: 10:
groupID: 0mass: 1.0name:
de: '#System'en: '#System'fr: '#Système'ja: '#システム'ru: '#Система'zh: '#星系'portionSize: 1published: false2:
groupID: 2name:
de: Corporationen: Corporationfr: Corporationja: コーポレーションru: Corporationzh: 军团portionSize: 1published: false3:
groupID: 3name:
de: Regionen: Regionfr: Régionja: リージョンru: Regionzh: 星域portionSize: 1published: falsevolume: 1.0)
When doing a YAML.parse on the yaml data, all the keys except for 0 are casted as an Int64, while 0 is casted as a string.
Take the following yaml data:
When doing a
YAML.parse
on the yaml data, all the keys except for 0 are casted as an Int64, while 0 is casted as a string.https://play.crystal-lang.org/#/r/47be/edit
The text was updated successfully, but these errors were encountered: