Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [2.1.5] - 2026-09-19

### Fixed

- `New-PlasterManifest` and JSON conversion paths emitted a `$schema` URL
that returned HTTP 404; updated all schema call sites and examples to
use the valid schema URL
([#478](https://github.com/PowerShellOrg/Plaster/pull/478),
closes [#477](https://github.com/PowerShellOrg/Plaster/issues/477))

## [2.1.4] - 2026-09-13

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Plaster/Plaster.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
GUID = 'cfce3c5e-402f-412a-a83a-7b7ee9832ff4'

# Version number of this module.
ModuleVersion = '2.1.4'
ModuleVersion = '2.1.5'

# Supported PSEditions
CompatiblePSEditions = @('Desktop', 'Core')
Expand Down
2 changes: 1 addition & 1 deletion Plaster/Private/New-JsonManifestStructure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function New-JsonManifestStructure {
)

$manifest = [ordered]@{
'$schema' = 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json'
'$schema' = 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json'
'schemaVersion' = '2.0'
'metadata' = [ordered]@{
'name' = $TemplateName
Expand Down
2 changes: 1 addition & 1 deletion Plaster/Public/ConvertTo-JsonManifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function ConvertTo-JsonManifest {
process {
try {
$jsonObject = [ordered]@{
'$schema' = 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json'
'$schema' = 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json'
'schemaVersion' = '2.0'
}

Expand Down
2 changes: 1 addition & 1 deletion Plaster/Public/New-PlasterManifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function New-PlasterManifest {
if ($Format -eq 'JSON') {
# Create JSON manifest
$jsonManifest = [ordered]@{
'$schema' = 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json'
'$schema' = 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json'
'schemaVersion' = '2.0'
'metadata' = [ordered]@{
'name' = $TemplateName
Expand Down
2 changes: 1 addition & 1 deletion Plaster/Schema/plaster-manifest-v2.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$id": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"title": "Plaster Template Manifest v2.0",
"description": "JSON schema for Plaster 2.0 template manifests",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ code plasterManifest.xml
### JSON Manifest Example
```json
{
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"name": "MyTemplate",
Expand Down
2 changes: 1 addition & 1 deletion demos/templates/02-json-greeter/plasterManifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"name": "JsonGreeter",
Expand Down
2 changes: 1 addition & 1 deletion demos/templates/03-json-module/plasterManifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"name": "AcmeModule",
Expand Down
2 changes: 1 addition & 1 deletion examples/NewModule/plasterManifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"id": "dcd95744-8abc-4ecb-a439-bf2cd37821bb",
Expand Down
2 changes: 1 addition & 1 deletion examples/NewPowerShellScript/plasterManifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShell/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"id": "635046f0-a59b-46a0-b6b3-892084707467",
Expand Down
2 changes: 1 addition & 1 deletion examples/TemplateModule/TemplateOne/plasterManifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShell/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"id": "635046f0-a59b-46a0-b6b3-892084707467",
Expand Down
2 changes: 1 addition & 1 deletion examples/TemplateModule/TemplateTwo/plasterManifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShell/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"id": "76a18e25-3c2f-4266-9a6f-64cdef44de94",
Expand Down
2 changes: 1 addition & 1 deletion examples/plasterManifest-validatePattern.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShell/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"id": "dcd95744-8abc-4ecb-a439-bf2cd37821bb",
Expand Down
2 changes: 1 addition & 1 deletion examples/plasterManifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShell/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"id": "38bd80d9-3a47-4916-9220-bed383d90876",
Expand Down
2 changes: 1 addition & 1 deletion examples/plasterManifest_fr-FR.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/PowerShell/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"id": "38bd80d9-3a47-4916-9220-bed383d90876",
Expand Down
6 changes: 3 additions & 3 deletions tests/ConditionEval.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Describe 'Condition Attribute Evaluation Tests' {

@'
{
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"name": "TemplateName",
Expand Down Expand Up @@ -193,7 +193,7 @@ Describe 'Condition Attribute Evaluation Tests' {

@'
{
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"name": "TemplateName",
Expand Down Expand Up @@ -242,7 +242,7 @@ Describe 'Condition Attribute Evaluation Tests' {

@'
{
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/v2/schema/plaster-manifest-v2.json",
"$schema": "https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json",
"schemaVersion": "2.0",
"metadata": {
"name": "TemplateName",
Expand Down
2 changes: 1 addition & 1 deletion tests/ConvertTo-JsonManifest.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Describe 'ConvertTo-JsonManifest' {

It 'Includes the $schema and schemaVersion fields' {
$json = ConvertTo-JsonManifest -XmlManifest (New-XmlManifest) | ConvertFrom-Json
$json.'$schema' | Should -Not -BeNullOrEmpty
$json.'$schema' | Should -Be 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json'
$json.schemaVersion | Should -Be '2.0'
}

Expand Down
1 change: 1 addition & 0 deletions tests/New-PlasterManifest.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ Describe 'New-PlasterManifest JSON Format Tests' {

Test-Path $PlasterManifestPath | Should -Be $true
$content = Get-Content $PlasterManifestPath -Raw | ConvertFrom-Json
$content.'$schema' | Should -Be 'https://raw.githubusercontent.com/PowerShellOrg/Plaster/main/Plaster/Schema/plaster-manifest-v2.json'
$content.schemaVersion | Should -Be '2.0'
$content.metadata.name | Should -Be 'JsonTemplate'
$content.metadata.id | Should -Be '1a1b0933-78b2-4a3e-bf48-492591e69521'
Expand Down