-
Notifications
You must be signed in to change notification settings - Fork 10
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
Replace the types public API with the Field public API #9
Comments
This API also allows to return to user schema = Schema('descriptor.json')
field = schema.get_field('name') # the same for schema.fields etc
field.name
field.cast_value('value') It's more useful to the user than just a dict. You could see it on the stack reference - frictionlessdata/frictionlessdata.io#289 (also there are some discrepancies - no PS. |
@pezholio |
That's right 👍 |
Thanks! Also starting to understand Ruby a little bit (found |
Yeah, it wasn't in the most sensible place before. Makes much more sense to have it in |
In the reference implementation we moved from exposing types to exposing a Field API. This was happening at the same time as the ruby port, so understandably is not here.
Also I think the change from
convert_*
tocast_*
semantics occurred at around the same time. Example.it would be good to move the Ruby lib to the Field API.
cc @roll
The text was updated successfully, but these errors were encountered: