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

How about support encoding or decoding for key ? #50

Open
lu911 opened this issue Dec 17, 2018 · 4 comments
Open

How about support encoding or decoding for key ? #50

lu911 opened this issue Dec 17, 2018 · 4 comments

Comments

@lu911
Copy link

lu911 commented Dec 17, 2018

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 10.1
  • Pring version: 0.14.0

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

I declared variable as camel-case in model. But I have to save using underscore to firestore.
I found encoding or decoding for value but couldn't change for key. I try to change _properties but it's private variable.

How about support decodeKey, encodeKey ?

Relevant Code:

// TODO(you): code here to reproduce the problem
@1amageek
Copy link
Owner

@lu911
Copy link
Author

lu911 commented Dec 18, 2018

@1amageek I just said property name.

@1amageek
Copy link
Owner

@YukSeungChan Sorry. not supported

@lu911
Copy link
Author

lu911 commented Dec 19, 2018

@1amageek I think it's better to add a feature and I will send PR when I have it done. How is it sound?

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