purescript-codec-argonaut icon indicating copy to clipboard operation
purescript-codec-argonaut copied to clipboard

APIs with left out fields don't compose well with APIs using non-purescripty casing

Open ysangkok opened this issue 1 year ago • 1 comments

If I use camelCase in my codebase, and an API uses snake_case, it seems like I have to use prismaticCodec and create converter functions that convert {field_name :: Foo} to {fieldName :: Foo}.

Using the alternative CA.prop API, I can specify the key name, so there is no issue. But then I can't have left-out fields as there is no pendant to recordPropOptional. Why is there no recordPropOptionalWithCustomKeyName?

ysangkok avatar Feb 26 '24 21:02 ysangkok