Skip to content

Commit

Permalink
chore(core): mark event and retries as deprecated for hooks api d…
Browse files Browse the repository at this point in the history
…oc (#5048)
  • Loading branch information
xiaoyijun authored Dec 4, 2023
1 parent 3e92a20 commit aa5bfdd
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion packages/core/src/routes/hooks.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
}
}
}
Expand Down Expand Up @@ -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."
}
}
}
}
}
Expand Down Expand Up @@ -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."
}
}
}
}
}
Expand Down

0 comments on commit aa5bfdd

Please sign in to comment.