Merge pull request #9758 from backstage/jhaals/deprecate-generation

catalog-model: Deprecate `entity.metadata.generation`
This commit is contained in:
Fredrik Adelöw
2022-02-23 15:52:04 +01:00
committed by GitHub
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/catalog-model': patch
---
Deprecated the `entity.metadata.generation` as the field has never been fully functioning.
@@ -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;
@@ -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",