Skip to content

Allowing empty nodes for Company, GivenName, SurName and Telephone elements of ContactPerson in Metadata - #5

Merged
kubek2k merged 2 commits into
masterfrom
svea-empty-telephone
Jun 17, 2026
Merged

kubek2k merged 2 commits into
masterfrom
svea-empty-telephone

Conversation

@kubek2k

@kubek2k kubek2k commented Jun 17, 2026

Copy link
Copy Markdown

The problem is with certain SAML IDP's that expose metadata with ContactPerson element containing empty nodes (instead of not including them). According to the spec those fields are not mandatory (and thats pretty much it about them) and this can be understood in a different way.

kubek2k added 2 commits June 17, 2026 11:51
AD FS-generated metadata (e.g. SVEA) emits self-closing <TelephoneNumber/>
elements which fail XS.xpString (xpTextDT requires non-empty text).
Switch to XP.xpText0 so empty bodies parse as the empty string.
Same rationale as TelephoneNumber: AD FS-style metadata may emit
self-closing string-typed contact children. Use xpText0 so they parse
as the empty string instead of failing xpTextDT.
@kubek2k
kubek2k merged commit 27d1121 into master Jun 17, 2026
2 checks passed
@kubek2k
kubek2k deleted the svea-empty-telephone branch September 17, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants