From b396a6723723ae0bd44576aee6eff139aa6b265b Mon Sep 17 00:00:00 2001 From: teramako Date: Tue, 29 Oct 2024 20:27:46 +0900 Subject: [PATCH 1/2] fix Name's XML Namespace in DataType `` -> `` see: https://github.com/PowerShell/PowerShell/blob/master/src/Schemas/PSMaml/developer.xsd#L235-L243 --- src/MamlWriter/DataType.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MamlWriter/DataType.cs b/src/MamlWriter/DataType.cs index c6cccfd3..4d9f36c5 100644 --- a/src/MamlWriter/DataType.cs +++ b/src/MamlWriter/DataType.cs @@ -16,7 +16,7 @@ public class DataType /// /// The data-type name. /// - [XmlElement("name", Namespace = Constants.XmlNamespace.Dev, Order = 0)] + [XmlElement("name", Namespace = Constants.XmlNamespace.MAML, Order = 0)] public string Name { get; set; } = string.Empty; /// From 84cbe2d7a11a4ddddffbd5151dec416c24893d34 Mon Sep 17 00:00:00 2001 From: teramako Date: Tue, 29 Oct 2024 20:51:31 +0900 Subject: [PATCH 2/2] fix: Uri's XML Namespace in RelatedLink `` -> `` see: https://github.com/PowerShell/PowerShell/blob/master/src/Schemas/PSMaml/inline.xsd#L159-L169 --- src/MamlWriter/RelatedLink.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MamlWriter/RelatedLink.cs b/src/MamlWriter/RelatedLink.cs index bcb860a1..00e52e7e 100644 --- a/src/MamlWriter/RelatedLink.cs +++ b/src/MamlWriter/RelatedLink.cs @@ -22,7 +22,7 @@ public class NavigationLink : IEquatable /// /// The command parameters associated with this syntax. /// - [XmlElement("uri", Namespace = Constants.XmlNamespace.Command, Order = 1)] + [XmlElement("uri", Namespace = Constants.XmlNamespace.MAML, Order = 1)] public string Uri { get; set; } = string.Empty; public bool Equals(NavigationLink other)