Skip to content

Commit ce2e266

Browse files
(MAINT) Fix bug in schema build script
This change fixes a bug in the schema build script that caused the build to mangle the generated output by failing to correctly replace `.yaml` references to `.json`.
1 parent f315af4 commit ce2e266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schemas/build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ process {
646646
$SchemaContent = $SchemaContent -replace '<VERSION>', $Config.version
647647
$SchemaContent = $SchemaContent -replace '<DOCS_BASE_URL>', $Config.docs_base_url
648648
$SchemaContent = $SchemaContent -replace '<DOCS_VERSION_PIN>', $Config.docs_version_pin
649-
$SchemaContent = $SchemaContent -replace '(?m)\.yaml$"?,?', '.json'
649+
$SchemaContent = $SchemaContent -replace '(?m)\.yaml"?,?\s*$', '.json'
650650
$SchemaPath = $_.FullName -replace 'src', $Config.version
651651
$SchemaFolder = Split-Path -Parent $SchemaPath
652652
if (-not (Test-Path -Path ($SchemaFolder))) {

0 commit comments

Comments
 (0)