-
Notifications
You must be signed in to change notification settings - Fork 2
Current Fix issues questions
Patrick Hochstenbach edited this page Aug 21, 2018
·
3 revisions
- Catmandu::MARC seems to have a lot of fixes that look in name like regular fixes:
- marc_add vs add_field
- marc_copy vs copy_field
- marc_replace_all vs replace_all
- marc_match vs all_match
- Can a new path mechanism created that "understand MARC" and can be used in normal fixes?
- Conditions miss boolean processing. One can write:
if all_match(foo,bar)
...
end
but not:
if all_match(foo,bar) || all_match(foo2,bar)
...
end
- Some Fix allow to pass arguments by value and by reference but not all. It would be nice to support
add_field(foo,$.bar)
where $.bar is the value found at the JSON path bar
- Sometimes unclear which actions have effect on array and which not (there should be path support for this in the language):
filter(array_field,"test") # filter from array 'array_field' all the items which contain "test"
replace_all(array_field,"test","rest") # doesn't work
replace_all(array_field.*,"test","rest") # works