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

Allow for non generic type codec #13

Open
dolanor opened this issue Feb 19, 2024 · 0 comments
Open

Allow for non generic type codec #13

dolanor opened this issue Feb 19, 2024 · 0 comments

Comments

@dolanor
Copy link
Owner

dolanor commented Feb 19, 2024

Right now, codecs work for generic encoding (eg. application/json, text/xml, …)

But in a business app, our types could have their own mime type (eg. application/vnd.mycompany.customers.v1+json).
This would kind mix encoding (json) and structural validation (does customer have the right field in the correct business format?). Some kind of marshal and validate mixup.

I need to think about a way, to mix them without coupling them. I guess the right interface could make wonders.

ref:

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

1 participant