diff --git a/output/schema/schema.json b/output/schema/schema.json index 2914be7d61..5af777c7a7 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -132695,7 +132695,7 @@ { "description": "The username of the User", "name": "username", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index ec5b6f11ec..0e0200abae 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13689,7 +13689,7 @@ export interface SecurityPutRoleMappingResponse { } export interface SecurityPutUserRequest extends RequestBase { - username: Username + username?: Username refresh?: Refresh body?: { username?: Username diff --git a/specification/security/put_user/SecurityPutUserRequest.ts b/specification/security/put_user/SecurityPutUserRequest.ts index 82de511792..642703d82f 100644 --- a/specification/security/put_user/SecurityPutUserRequest.ts +++ b/specification/security/put_user/SecurityPutUserRequest.ts @@ -27,7 +27,10 @@ import { Metadata, Password, Refresh, Username } from '@_types/common' */ export interface Request extends RequestBase { path_parts: { - username: Username + // this should be required, but since it's present in the body + // as well, it could cause issues with code generators, + // thus let's mark it as optional. + username?: Username } query_parameters: { refresh?: Refresh