Commit 2b51f7e
committed
validation BUGFIX when-false review fixes
Address review findings on the LYD_WHEN_FALSE handling.
- Initialize the return code before skipping a when-false node in
lyd_validate_final_r so a when-false first sibling no longer reads an
uninitialized value.
- Clear a stale LYD_WHEN_FALSE mark when a when later resolves to true so
XPath no longer treats a now-valid node as non-existent on revalidation.
- Skip container default handling for when-false nodes in addition to
their child validation.
- Add a nested when-in-when regression test confirming the node_when
descendant cleanup suppresses the spurious child when error.1 parent 5219b0b commit 2b51f7e
2 files changed
Lines changed: 54 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
483 | 485 | | |
484 | 486 | | |
485 | 487 | | |
| |||
1814 | 1816 | | |
1815 | 1817 | | |
1816 | 1818 | | |
| 1819 | + | |
1817 | 1820 | | |
1818 | 1821 | | |
1819 | 1822 | | |
| |||
1846 | 1849 | | |
1847 | 1850 | | |
1848 | 1851 | | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
1860 | 1859 | | |
1861 | | - | |
1862 | | - | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1863 | 1863 | | |
1864 | 1864 | | |
1865 | 1865 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
1835 | 1875 | | |
1836 | 1876 | | |
1837 | 1877 | | |
| |||
0 commit comments