2 ms·
For what it's worth, I've been learning Erlang and this was my first shot at json form parsing: https://github.com/cieplak/chat/blob/master/src/http/forms.erl#
by Cieplak 10y ago
For what it's worth, I've been learning Erlang and this was my first shot at json form parsing:
https://github.com/cieplak/chat/blob/master/src/http/forms.erl#L6 https://github.com/cieplak/chat/blob/master/src/http/forms.e...
https://github.com/cieplak/chat/blob/master/src/domain/types/message.erl#L32 https://github.com/cieplak/chat/blob/master/src/domain/types...
No data validation at the moment, but it would be nice to generate the form parsing and validation, as well as the getters and setters, from a declarative spec.