From 3d8b19b88aba4cf0bc1d963dd2344048b0062bbd Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Tue, 23 Jul 2024 15:00:50 -0500 Subject: [PATCH] put_user: Drop username from body Username is present in both the path and the body, and the docs indicate that it should only be in the path. https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-user.html --- output/schema/schema.json | 13 +------------ output/typescript/types.ts | 1 - .../security/put_user/SecurityPutUserRequest.ts | 1 - 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 34b239cb6c..84071a886b 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -186568,17 +186568,6 @@ "body": { "kind": "properties", "properties": [ - { - "name": "username", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Username", - "namespace": "_types" - } - } - }, { "name": "email", "required": false, @@ -186725,7 +186714,7 @@ } } ], - "specLocation": "security/put_user/SecurityPutUserRequest.ts#L23-L44" + "specLocation": "security/put_user/SecurityPutUserRequest.ts#L23-L43" }, { "body": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index c2ecf989e5..45b8669608 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -17625,7 +17625,6 @@ export interface SecurityPutUserRequest extends RequestBase { username: Username refresh?: Refresh body?: { - username?: Username email?: string | null full_name?: string | null metadata?: Metadata diff --git a/specification/security/put_user/SecurityPutUserRequest.ts b/specification/security/put_user/SecurityPutUserRequest.ts index ada08b3c16..46f7820fcc 100644 --- a/specification/security/put_user/SecurityPutUserRequest.ts +++ b/specification/security/put_user/SecurityPutUserRequest.ts @@ -32,7 +32,6 @@ export interface Request extends RequestBase { refresh?: Refresh } body: { - username?: Username email?: string | null full_name?: string | null metadata?: Metadata