Skip to content

Enable schema validation for CDXML in ScriptWriter.cs #3680

Closed

Description

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.

Activity

  1. added
    Issue-Enhancement
    on Apr 6, 2018
  2. bergmeister commented on Aug 5, 2018

    @bergmeister
    Contributor

    Dongbo Wang (@daxian-dbw) From your comment, it seems that the cmdlets-over-objects.xsd file would still work for full .Net, is that correct? Due to the file not being present in the GitHub repo, I would need to conditionally exclude this code not only for coreclr but also additionaly for fullclr now as I plan to open a PR for #7408 soon

  3. daxian-dbw commented on Aug 6, 2018

    @daxian-dbw
    MemberAuthor

    Christoph Bergmeister (@bergmeister) Yes, as far as I understand, the file cmdlets-over-objects.xsd should work for full .NET.

  4. bergmeister commented on Aug 6, 2018

    @bergmeister
    Contributor

    Dongbo Wang (@daxian-dbw) Is it then possible to add this missing file to the source code please or are there problems with licensing/IP?
    I tried looking for the file in the source-depot branch as well and in the Windows PowerShell installation folder but could not find it...

  5. daxian-dbw commented on Aug 7, 2018

    @daxian-dbw
    MemberAuthor

    I think there is no problem to add the file to GitHub, but Steve Lee (@SteveL-MSFT) can you please confirm.
    Andrew (@anmenaga) Can you please look into this when you have some time? Thanks!

  6. bergmeister commented on Aug 7, 2018

    @bergmeister
    Contributor

    Ok, thanks. It seems we have to discuss #7408 in more detail. When I did the proof of concept of compiling SMA for full .Net, I made the assumption that I should not define the CORECLR constant for this compilation configuration. Maybe this was a mistake, which would mean that this file would then not be needed.

  7. SteveL-MSFT commented on Aug 8, 2018

    @SteveL-MSFT
    Member

    There should be no issue adding that file as long as the appropriate copyright/license header is there.

  8. iSazonov commented on Mar 8, 2019

    @iSazonov
    Collaborator

    Do we wait the file?

  9. SteveL-MSFT commented on Mar 20, 2019

    @SteveL-MSFT
    Member

    Created PR for the xsd #9177

  10. iSazonov commented on Jul 12, 2019

    @iSazonov
    Collaborator

    It seems it would be nice to fix this before 7.0 release.

  11. added
    Up-for-Grabs
    on Jul 25, 2019
  12. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  13. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  14. added
    Resolution-No Activity
    on Nov 16, 2023
  15. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  16. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-No ActivityUp-for-GrabsWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions