Closed davidmat50 closed 1 year ago
i was able to duplicate this. may take few days to address this.
i think i had interpretation of RFC regarding "augment" fairly wrong. I pushed what i believe to be correct implementation to a branch called aug-with-uses
. Can you test this branch to see if it addresses your issue?
fixed
Hi @dhubler , i hope this is merged to master already. But when i checked the behaviour in the latest version, i am seeing that augemted data is not getting attached to data definitions tree ( ie the dataDefinitions in the module).
It was properly augmenting before but now that is not happening,
The issue i raised initially was only for the 'uses' statement under augemt. Now the entire augment data itself is missing,
Raising this the above observation as a new issue
In normal cases, if 'uses" is used , the entire data definitions inside the grouping referred by the referred 'uses' keyword is being replaced in the data tree. 'Augment' also replaces the augmented data plus any additional data nodes kept under augment.
But if 'uses' is used under augment, then the data refreed by the grouping is not seen as additional data under augment. AS per RFC 7950, 'uses' should be supported as a substatment for 'augment'
Example file: