[YANGTOOLS-1463] YangTextSchemaContextResolver needs to we aware of supported features Created: 04/Nov/22 Updated: 11/Apr/23 Resolved: 11/Apr/23 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | parser |
| Affects Version/s: | None |
| Fix Version/s: | 11.0.0, 10.0.5 |
| Type: | Improvement | Priority: | High |
| Reporter: | Robert Varga | Assignee: | Matúš Matok |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
YangTextSchemaContextResolver does not currently provide a way to affect which features are supported – the effective model always supports all features. Add the ability to select features used in building the effective model, which will work in an additive way with backwards compatibility. Specifically expose a new method, public final class YangTextSchemaContextResolver { public @NonNull Registration registerSupportedFeatures(QNameModule module, Set<QName> features) { // ... } } The mechanics should work like this:
|