From 131a99e909c0ab3834f52afab158ebf321da5bae Mon Sep 17 00:00:00 2001 From: Christian Probst Date: Wed, 18 May 2022 08:27:10 +0200 Subject: [PATCH] Align common.schema.json with Entity type Added the field `targetRef` to match the Typescript type Signed-off-by: Christian Probst --- .changeset/shaggy-crabs-return.md | 5 +++++ packages/catalog-model/src/schema/shared/common.schema.json | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 .changeset/shaggy-crabs-return.md diff --git a/.changeset/shaggy-crabs-return.md b/.changeset/shaggy-crabs-return.md new file mode 100644 index 0000000000..afd1f74ef5 --- /dev/null +++ b/.changeset/shaggy-crabs-return.md @@ -0,0 +1,5 @@ +--- +'@backstage/catalog-model': patch +--- + +Added targetRef to common.schema.json to match the Typescript type diff --git a/packages/catalog-model/src/schema/shared/common.schema.json b/packages/catalog-model/src/schema/shared/common.schema.json index a9082d53e4..5a5eb97bb7 100644 --- a/packages/catalog-model/src/schema/shared/common.schema.json +++ b/packages/catalog-model/src/schema/shared/common.schema.json @@ -43,6 +43,11 @@ }, "target": { "$ref": "#reference" + }, + "targetRef": { + "type": "string", + "minLength": 1, + "description": "The entity ref of the target of this relation." } } },