mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
ARI: Run 'make ari-stubs'
An earlier contributor apparently forgot to run 'make ari-stubs' before committing after making ARI model changes. Change-Id: I7813e5638e2821d11f4b968dc2aeab4f725190a6
This commit is contained in:
@@ -2455,6 +2455,7 @@ int ast_ari_validate_application_move_failed(struct ast_json *json)
|
|||||||
struct ast_json_iter *iter;
|
struct ast_json_iter *iter;
|
||||||
int has_type = 0;
|
int has_type = 0;
|
||||||
int has_application = 0;
|
int has_application = 0;
|
||||||
|
int has_timestamp = 0;
|
||||||
int has_args = 0;
|
int has_args = 0;
|
||||||
int has_channel = 0;
|
int has_channel = 0;
|
||||||
int has_destination = 0;
|
int has_destination = 0;
|
||||||
@@ -2491,6 +2492,7 @@ int ast_ari_validate_application_move_failed(struct ast_json *json)
|
|||||||
} else
|
} else
|
||||||
if (strcmp("timestamp", ast_json_object_iter_key(iter)) == 0) {
|
if (strcmp("timestamp", ast_json_object_iter_key(iter)) == 0) {
|
||||||
int prop_is_valid;
|
int prop_is_valid;
|
||||||
|
has_timestamp = 1;
|
||||||
prop_is_valid = ast_ari_validate_date(
|
prop_is_valid = ast_ari_validate_date(
|
||||||
ast_json_object_iter_value(iter));
|
ast_json_object_iter_value(iter));
|
||||||
if (!prop_is_valid) {
|
if (!prop_is_valid) {
|
||||||
@@ -2547,6 +2549,11 @@ int ast_ari_validate_application_move_failed(struct ast_json *json)
|
|||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!has_timestamp) {
|
||||||
|
ast_log(LOG_ERROR, "ARI ApplicationMoveFailed missing required field timestamp\n");
|
||||||
|
res = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!has_args) {
|
if (!has_args) {
|
||||||
ast_log(LOG_ERROR, "ARI ApplicationMoveFailed missing required field args\n");
|
ast_log(LOG_ERROR, "ARI ApplicationMoveFailed missing required field args\n");
|
||||||
res = 0;
|
res = 0;
|
||||||
|
@@ -1603,7 +1603,7 @@ ari_validator ast_ari_validate_application_fn(void);
|
|||||||
* - asterisk_id: string
|
* - asterisk_id: string
|
||||||
* - type: string (required)
|
* - type: string (required)
|
||||||
* - application: string (required)
|
* - application: string (required)
|
||||||
* - timestamp: Date
|
* - timestamp: Date (required)
|
||||||
* - args: List[string] (required)
|
* - args: List[string] (required)
|
||||||
* - channel: Channel (required)
|
* - channel: Channel (required)
|
||||||
* - destination: string (required)
|
* - destination: string (required)
|
||||||
|
Reference in New Issue
Block a user