メインコンテンツまでスキップ
バージョン: 0.13.0 (Previous)

📐 ID スキーマ

identityIdPathParameter は再利用可能な OpenAPIParameter で、他の 7 つのエクスポートは withSchema(...) SDK コンポーザーです。ID 機能およびルート、ならびに Profile の ID プロファイル検索のリクエスト契約を定義します。

一覧​

エクスポートリクエストの場所契約
identityIdPathParameterパス必須の文字列 identityId を再利用可能なパラメーターとして定義します。
getIdentitySchemaパス必須の identityId。
findIdentitySchemaクエリ省略可能な name、page、limit。
updateIdentitySchemaパス、本文必須の identityId と、省略可能な更新フィールドを持つ必須の厳格な JSON オブジェクト。
deleteIdentitySchemaパス必須の identityId。
lockIdentitySchemaパス必須の identityId。
unlockIdentitySchemaパス必須の identityId。
findByIdentityIdSchemaパス、クエリ必須の identityId と、省略可能なページネーションクエリフィールド。

詳細​

identityIdPathParameter​

定義

ID の再利用可能なパスパラメーター定義。

場所フィールド型必須制約
パスidentityId文字列はい形式またはパターンの制限は宣言されていません。

Used by getIdentitySchema, updateIdentitySchema, deleteIdentitySchema, lockIdentitySchema, unlockIdentitySchema, and findByIdentityIdSchema. いいえtification also spreads it into updateNotificationToReadBatchSchema.

完全なソースを表示
export const identityIdPathParameter: OpenAPIParameter = {
in: 'path',
name: 'identityId',
required: true,
schema: {
type: 'string',
},
};

getIdentitySchema​

定義

ID 取得用のパス ID を検証します。

場所フィールド型必須制約
パスidentityId文字列はい次から展開: identityIdPathParameter.

ルートでの使用: getIdentityRoute. 機能での使用: getIdentityFeature.

完全なソースを表示
export const getIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

findIdentitySchema​

定義

ID 一覧クエリを検証します。page と limit は共通の paginationQueryParametersSchema から展開されます。

場所フィールド型必須制約
クエリname文字列いいえ省略可能な ID 名フィルター。
クエリpage整数いいえ最小 1; 最大 1000.
クエリlimit整数いいえ最小 1; 最大 50.

ルートでの使用: findIdentitiesRoute. 機能での使用: findIdentitiesFeature.

完全なソースを表示
export const findIdentitySchema = withSchema({
parameters: [
{
in: 'query',
name: 'name',
required: false,
schema: {
type: 'string',
},
},
...paginationQueryParametersSchema,
],
});

updateIdentitySchema​

定義

ID 更新を検証します。リクエスト本文は必須で、列挙された JSON プロパティのみを受け付けます。本文の各プロパティは個別には必須ではありません。

場所フィールド型必須制約
パスidentityId文字列はい次から展開: identityIdPathParameter.
本文bodyオブジェクトはいContent type application/json; additionalProperties: false.
本文email文字列いいえ許可される JSON プロパティ。
本文emailVerified真偽値いいえ許可される JSON プロパティ。
本文typeId文字列いいえ許可される JSON プロパティ。

ルートでの使用: updateIdentityRoute. 機能での使用: updateIdentityFeature.

完全なソースを表示
export const updateIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
requestBody: {
content: {
'application/json': {
schema: {
$schema: 'http://json-schema.org/draft-07/schema#',
additionalProperties: false,
properties: {
email: {type: 'string'},
emailVerified: {type: 'boolean'},
typeId: {type: 'string'},
},
type: 'object',
},
},
},
required: true,
},
});

deleteIdentitySchema​

定義

ID 削除用のパス ID を検証します。

場所フィールド型必須制約
パスidentityId文字列はい次から展開: identityIdPathParameter.

ルートでの使用: deleteIdentityRoute. 機能での使用: deleteIdentityFeature.

完全なソースを表示
export const deleteIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

lockIdentitySchema​

定義

ID ロック用のパス ID を検証します。

場所フィールド型必須制約
パスidentityId文字列はい次から展開: identityIdPathParameter.

ルートでの使用: lockIdentityRoute. 機能での使用: lockIdentityFeature.

完全なソースを表示
export const lockIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

unlockIdentitySchema​

定義

ID ロック解除用のパス ID を検証します。

場所フィールド型必須制約
パスidentityId文字列はい次から展開: identityIdPathParameter.

ルートでの使用: unlockIdentityRoute. 機能での使用: unlockIdentityFeature.

完全なソースを表示
export const unlockIdentitySchema = withSchema({
parameters: [{...identityIdPathParameter}],
});

findByIdentityIdSchema​

定義

Profile の ID プロファイル検索を検証します。ページネーションフィールドは共通の paginationQueryParametersSchema から展開されます。

場所フィールド型必須制約
パスidentityId文字列はい次から展開: identityIdPathParameter.
クエリpage整数いいえ最小 1; 最大 1000.
クエリlimit整数いいえ最小 1; 最大 50.

ルートでの使用: findProfilesByIdentityIdRoute. 機能での使用: findProfilesByIdentityIdFeature.

完全なソースを表示
export const findByIdentityIdSchema = withSchema({
parameters: [{...identityIdPathParameter}, ...paginationQueryParametersSchema],
});