From 6b42b824d3a3028742cb17fe45f4fa541ebe63f1 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 12 Sep 2024 10:10:19 +0300 Subject: [PATCH 1/2] add ttl field --- identification.yml | 3 +++ search.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/identification.yml b/identification.yml index 4856889..bed0980 100644 --- a/identification.yml +++ b/identification.yml @@ -74,6 +74,9 @@ components: items: type: string format: uuid + ttl: + type: integer + description: "The lifespan of the Person's records, seconds." PersonToUpdateFields: type: object description: "Person Request body: name and metadata." diff --git a/search.yml b/search.yml index b27e997..8f64894 100644 --- a/search.yml +++ b/search.yml @@ -53,6 +53,9 @@ definitions: type: object additionalProperties: true description: "A free-form object containing person's extended attributes." + ttl: + type: integer + description: "The lifespan of the Person's records, seconds." groupIds: type: array description: "IDs of the groups in which the search is performed." From a0ce51a961ca2ec4c72312d78b57abd3128ab0b5 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 12 Sep 2024 11:03:38 +0300 Subject: [PATCH 2/2] updates --- identification.yml | 4 +++- search.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/identification.yml b/identification.yml index bed0980..43d3285 100644 --- a/identification.yml +++ b/identification.yml @@ -76,7 +76,9 @@ components: format: uuid ttl: type: integer - description: "The lifespan of the Person's records, seconds." + description: "The lifespan of the Person's records, seconds. Optional." + nullable: true + default: null PersonToUpdateFields: type: object description: "Person Request body: name and metadata." diff --git a/search.yml b/search.yml index 8f64894..c1dc935 100644 --- a/search.yml +++ b/search.yml @@ -55,7 +55,9 @@ definitions: description: "A free-form object containing person's extended attributes." ttl: type: integer - description: "The lifespan of the Person's records, seconds." + description: "The lifespan of the Person's records, seconds. Optional." + nullable: true + default: null groupIds: type: array description: "IDs of the groups in which the search is performed."