From 6e4ee683104c2abc18bbb0379a58fe92207b2607 Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Mon, 19 Feb 2024 17:43:26 +0100 Subject: [PATCH] Make `name` not required in `PgRollMigration` (#282) Signed-off-by: Alexis Rico --- pkg/migrations/types.go | 2 +- schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/migrations/types.go b/pkg/migrations/types.go index cb58320..4e047ec 100644 --- a/pkg/migrations/types.go +++ b/pkg/migrations/types.go @@ -199,7 +199,7 @@ type OpSetReplicaIdentity struct { // PgRoll migration definition type PgRollMigration struct { // Name of the migration - Name string `json:"name"` + Name *string `json:"name,omitempty"` // Operations corresponds to the JSON schema field "operations". Operations PgRollOperations `json:"operations"` diff --git a/schema.json b/schema.json index 91f60bb..e577488 100644 --- a/schema.json +++ b/schema.json @@ -517,7 +517,7 @@ "$ref": "#/$defs/PgRollOperations" } }, - "required": ["name", "operations"], + "required": ["operations"], "type": "object" }, "ReplicaIdentity": {