[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. |