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

Rails YML string values casted to integer or boolean #62

Closed
j15e opened this issue Dec 2, 2018 · 1 comment
Closed

Rails YML string values casted to integer or boolean #62

j15e opened this issue Dec 2, 2018 · 1 comment

Comments

@j15e
Copy link

j15e commented Dec 2, 2018

Some strings that are a boolean or integer are not exported as string with the rails YML exporter.

# Before sync
key_one: "true"
key_two: "123456"

# After sync
key_one: true
key_two: 123456

I found the underlying issue seems to be that fast_yaml lib isn't providing encoding options and that problem was already reported by @simonprev (processone/fast_yaml#2).

I created this issue so others don't need to dig that problem again eheh.

@j15e j15e changed the title Some Rails YML serializer string values are casted to integer or boolean Rails YML string values casted to integer or boolean Dec 2, 2018
@simonprev
Copy link
Member

Since the fast_yaml is not working on my M1 machine, we are currently only supporting the existing implementation and not fixing/adding features to the YAML format 😢

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