Branch: refs/heads/master
Home: https://github.com/openSUSE/wicked
Commit: 56ad5bcd581aaa38c35be4ed37aa216d0f7d6d5f
https://github.com/openSUSE/wicked/commit/56ad5bcd581aaa38c35be4ed37aa216d0f...
Author: Clemens Famulla-Conrad
Date: 2021-03-11 (Thu, 11 Mar 2021)
Changed paths:
M src/xml-schema.c
Log Message:
-----------
xml-schema: Do not allow anon types in union or struct
We do not allow anon types in `union` or `struct`, as we already to with
`dict`.
This is forbidden after this commit:
```xml
<define name="certificate" class="union" switch="type">
<path type="string"/>
<external-file/>
<hex-string/>
</define>
```
Each child element of a union or a struct need to be defined in the
"complex" way like:
```xml
<define name="certificate" class="union" switch="type">
<path type="string"/>
<file type="external-file"/>
<hex type="hex-string"/>
</define>
```
Commit: bbf7148ea26369e05fb622a47232103c6f9f4daa
https://github.com/openSUSE/wicked/commit/bbf7148ea26369e05fb622a47232103c6f...
Author: Clemens Famulla-Conrad
Date: 2021-03-11 (Thu, 11 Mar 2021)
Changed paths:
M src/xml-schema.c
Log Message:
-----------
xml-schema: Fix ni_xs_name_type_array_find_local() with NULL check
Anon types have `ni_xs_name_type_array_t->name` equal to NULL.
This fix a NULL pointer exception in such a case.
Commit: 8964ba2fa10efe8993d5cd987dbfbfeefeb55c3c
https://github.com/openSUSE/wicked/commit/8964ba2fa10efe8993d5cd987dbfbfeefe...
Author: Marius Tomaschewski
Date: 2021-03-19 (Fri, 19 Mar 2021)
Changed paths:
M src/xml-schema.c
Log Message:
-----------
Merge pull request #863 from cfconrad/cfconrad_github_pr_schema_improvements
xml-schema: Do not allow anon types for union and struct
Compare: https://github.com/openSUSE/wicked/compare/add770c2e6de...8964ba2fa10e