Skip to content

Enable schema validation for CDXML in ScriptWriter.cs #3680

@daxian-dbw

Description

@daxian-dbw

powershell core currently doesn't validate CDXML schema due to the missing of related APIs in .NET Core 1.1 and prior versions, and the related code are if/def'ed out.

In .NET Core 2.0, XML Schema validation APIs are brought back, so the CDXML schema validation related code in ScriptWriter.cs can be enabled now, but it will require additional work to make the schema validation work in powershell core, because

  1. The XML Schema file cmdlets-over-objects.xsd is missing in Github
  2. The resource string CmdletizationCoreResources.Xml_cmdletsOverObjectsXsd likely needs to be reworked to make the schema validation work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions