diff --git a/.changeset/thirty-keys-study.md b/.changeset/thirty-keys-study.md new file mode 100644 index 0000000000..e2cc5fa76e --- /dev/null +++ b/.changeset/thirty-keys-study.md @@ -0,0 +1,5 @@ +--- +'@backstage/catalog-model': patch +--- + +Deprecated the `entity.metadata.generation` as the field has never been fully functioning. diff --git a/packages/catalog-model/src/entity/Entity.ts b/packages/catalog-model/src/entity/Entity.ts index 63ddb6aa53..ef9b4352da 100644 --- a/packages/catalog-model/src/entity/Entity.ts +++ b/packages/catalog-model/src/entity/Entity.ts @@ -116,6 +116,7 @@ export type EntityMeta = JsonObject & { * This field can not be set by the user at creation time, and the server * will reject an attempt to do so. The field will be populated in read * operations. + * @deprecated field is not supported. */ generation?: number; diff --git a/packages/catalog-model/src/schema/EntityMeta.schema.json b/packages/catalog-model/src/schema/EntityMeta.schema.json index c834bfb113..7b2b9d3f82 100644 --- a/packages/catalog-model/src/schema/EntityMeta.schema.json +++ b/packages/catalog-model/src/schema/EntityMeta.schema.json @@ -38,7 +38,8 @@ "type": "integer", "description": "A positive nonzero number that indicates the current generation of data for this entity; the value is incremented each time the spec changes. This field can not be set by the user at creation time, and the server will reject an attempt to do so. The field will be populated in read operations.", "examples": [1], - "minimum": 1 + "minimum": 1, + "deprecated": true }, "name": { "type": "string",