These are chat archives for dry-rb/chat

Aug 2017
Joshua Hansen
Aug 24 2017 17:46
What is the best way to take a Schema class and tell it to strip the output of keys that don't matter (e.g. keys that are not part of the Schema)? When I create a Form, this seems to be the default, but I don't see an "output" option anywhere.
Joshua Hansen
Aug 24 2017 18:29
Looks like it's :input_processor and now I gotta go file an issue. lol
Tim Riley
Aug 24 2017 22:39

@binarypaladin This should be the default behaviour of schemas. They don’t let keys through that aren’t in the schema.

You can get the “output” of a schema by calling .to_h on the result object.