gestalt
gestalt copied to clipboard
Decoders return true or false in canDecode based on the node.
Previously the method public boolean canDecode(String path, Tags tags, ConfigNode node, TypeCapture<?> type) { did not take into account the ConfigNode. So most decoders such as ByteDecoder will only look at the TypeCapture when deciding if it should decode the node. Then the decode will fail if a non-Lean node was sent.
The canDecode method should only return true if both the node type and the TypeCapture match those supported by the decoder.