[YANGTOOLS-935] Allow codecs to be instantiated without a SchemaPath Created: 20/Jan/19  Updated: 24/Jan/19  Resolved: 24/Jan/19

Status: Resolved
Project: yangtools
Component/s: codecs
Affects Version/s: None
Fix Version/s: 2.0.17, 2.1.9

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Current API design, which requires a SchemaContext and a SchemaPath is not completely sufficient to disambiguate references and furthermore forces a lookup which can be avoided if the caller has the matching SchemaNode available.

Make sure JSONNormalizedNodeStreamWriter and XMLStreamNormalizedNodeStreamWriter can be instantiated by providing a combination of SchemaContext and DataNodeContainer.


Generated at Wed Feb 07 20:54:43 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.