Skip to content

Decoders return true or false in canDecode based on the node.  #172

@credmond-git

Description

@credmond-git

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions