-
Notifications
You must be signed in to change notification settings - Fork 600
DTL Artifact JSON Schema for draft-06 ?? #888
Copy link
Copy link
Open
Description
mmcdermo2
opened on Mar 28, 2024
Issue body actions
- The current schema for Artifacts (https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json) is based on JSON schema draft-04.
- Since PowerShell 7.4, it seems that the Test-Json function cannot validate schemas based on draft-04
- Within our DTL private repo, we have a set of tests for validating the artifact.json files on each Pull Request. One such test uses Test-Json to validate that the artifact.json file matches the schema to ensure that we don't commit any bad artifact files to the main branch
- However, now that we are on PowerShell 7.4, this particular test is failing, because PowerShell can't seem to validate draft-04.
- Is anybody aware if there is a newer dtlArtifacts schema based on draft-06 that we can use instead ? Or if there's any plans to update the current 2016-11-28 schema to draft-06 ?
- Below is some code to demonstrate the issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels