microsoft / containers-toolkit

Containers-Toolkit is a Windows PowerShell module for downloading, installing, and setting up default configs for Containerd, BuildKit, Windows CNI plugin, and nerdctl.
MIT License
14 stars 9 forks source link

[Bug] Backward compatibility: Test-JSONChecksum #36

Closed TinaMor closed 2 weeks ago

TinaMor commented 2 weeks ago

PR description

The command syntax for Test-JSON differs between PowerShell versions 7.2 (used in #35) and 7.4 (used to develop this module). For backward compatibility, we use the syntax common to both versions: Test-Json -Json -Schema instead of Test-Json -Path -SchemaFile .

Github issue/ discussion

Issue #35

Relevant links

Checklist

As part of our commitment to engineering excellence, before submitting this PR, please make sure:

In addition, after this PR has been reviewed, please agree to: