0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

chore(core): mark event and retries as deprecated for hooks api doc (#5048)

This commit is contained in:
Xiao Yijun 2023-12-04 14:33:42 +08:00 committed by GitHub
parent 3e92a20320
commit aa5bfdd0b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,8 +34,20 @@
"name": {
"description": "The name of the hook."
},
"event": {
"deprecated": true,
"description": "Use `events` instead."
},
"events": {
"description": "An array of hook events."
},
"config": {
"properties": {
"retries": {
"deprecated": true,
"description": "Now the retry times is fixed to 3. Keep for backward compatibility."
}
}
}
}
}
@ -77,8 +89,20 @@
"name": {
"description": "The updated name of the hook."
},
"event": {
"deprecated": true,
"description": "Use `events` instead."
},
"events": {
"description": "An array of updated hook events."
},
"config": {
"properties": {
"retries": {
"deprecated": true,
"description": "Now the retry times is fixed to 3. Keep for backward compatibility."
}
}
}
}
}
@ -128,11 +152,21 @@
"application/json": {
"schema": {
"properties": {
"event": {
"deprecated": true,
"description": "Use `events` instead."
},
"events": {
"description": "An array of hook events for testing."
},
"config": {
"description": "The hook configuration for testing."
"description": "The hook configuration for testing.",
"properties": {
"retries": {
"deprecated": true,
"description": "Now the retry times is fixed to 3. Keep for backward compatibility."
}
}
}
}
}