Skip to content

Commit ec46536

Browse files
author
rchxx
committed
remove ttl, add expireAt for Person schemas
1 parent 4e8b390 commit ec46536

2 files changed

Lines changed: 4 additions & 35 deletions

File tree

identification.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ components:
7474
items:
7575
type: string
7676
format: uuid
77-
ttl:
78-
type: integer
79-
description: "The lifespan of the Person's records, seconds. Optional."
80-
nullable: true
81-
default: null
77+
expireAt:
78+
type: string
79+
description: "Person expiration date."
8280
PersonToUpdateFields:
8381
type: object
8482
description: "Person Request body: name and metadata."

search.yml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ paths:
2828
content:
2929
application/json:
3030
schema:
31-
$ref: "#/definitions/SearchResult"
31+
$ref: "#/definitions/SearchPerson"
3232
400:
3333
$ref: "./identification.yml#/components/responses/SearchBadParamsException"
3434

@@ -118,35 +118,6 @@ definitions:
118118
description: "Array of Person images. It is returned only with response 200."
119119
items:
120120
$ref: "#/definitions/SearchPerson"
121-
id:
122-
type: string
123-
format: uuid
124-
description: "Person ID. The list of persons is sorted by decreasing ID value."
125-
nullable: true
126-
createdAt:
127-
type: string
128-
description: "Person creation date."
129-
nullable: true
130-
updatedAt:
131-
type: string
132-
description: "Person update date."
133-
nullable: true
134-
groups:
135-
type: array
136-
description: "List of groups this person belongs to."
137-
nullable: true
138-
items:
139-
type: string
140-
format: uuid
141-
name:
142-
type: string
143-
description: "Person's name."
144-
nullable: true
145-
metadata:
146-
type: object
147-
additionalProperties: true
148-
description: "A free-form object containing person's extended attributes. Available when a person is being created"
149-
150121
SearchPerson:
151122
allOf:
152123
- $ref: "./identification.yml#/components/schemas/Person"

0 commit comments

Comments
 (0)