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
I'm trying to use couch_potato for an existing schema (where I have no say in the contents).
It contains some interesting keys such as 'with-a-dash' or 'why_no_question?'
This obviously fails when mapping this on ruby attributes.
Perhaps it could be useful to allow: field :my_field, couchdb_key: 'my-field'
ChatGPT helped me (poorly) to make some adjustments and get this to work. I have not tested this extensively.
If you want, I can PR my changes but you will probably have a better view on where to make these adjustments to support this.
The text was updated successfully, but these errors were encountered:
I'm trying to use couch_potato for an existing schema (where I have no say in the contents).
It contains some interesting keys such as 'with-a-dash' or 'why_no_question?'
This obviously fails when mapping this on ruby attributes.
Perhaps it could be useful to allow:
field :my_field, couchdb_key: 'my-field'
ChatGPT helped me (poorly) to make some adjustments and get this to work. I have not tested this extensively.
If you want, I can PR my changes but you will probably have a better view on where to make these adjustments to support this.
The text was updated successfully, but these errors were encountered: