<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11274">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ARI: Run 'make ari-stubs'<br><br>An earlier contributor apparently forgot to run 'make ari-stubs'<br>before committing after making ARI model changes.<br><br>Change-Id: I7813e5638e2821d11f4b968dc2aeab4f725190a6<br>---<br>M res/ari/ari_model_validators.c<br>M res/ari/ari_model_validators.h<br>2 files changed, 8 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/ari/ari_model_validators.c b/res/ari/ari_model_validators.c</span><br><span>index e3ca10a..8910bbb 100644</span><br><span>--- a/res/ari/ari_model_validators.c</span><br><span>+++ b/res/ari/ari_model_validators.c</span><br><span>@@ -2455,6 +2455,7 @@</span><br><span> struct ast_json_iter *iter;</span><br><span> int has_type = 0;</span><br><span> int has_application = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+ int has_timestamp = 0;</span><br><span> int has_args = 0;</span><br><span> int has_channel = 0;</span><br><span> int has_destination = 0;</span><br><span>@@ -2491,6 +2492,7 @@</span><br><span> } else</span><br><span> if (strcmp("timestamp", ast_json_object_iter_key(iter)) == 0) {</span><br><span> int prop_is_valid;</span><br><span style="color: hsl(120, 100%, 40%);">+ has_timestamp = 1;</span><br><span> prop_is_valid = ast_ari_validate_date(</span><br><span> ast_json_object_iter_value(iter));</span><br><span> if (!prop_is_valid) {</span><br><span>@@ -2547,6 +2549,11 @@</span><br><span> res = 0;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ if (!has_timestamp) {</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_log(LOG_ERROR, "ARI ApplicationMoveFailed missing required field timestamp\n");</span><br><span style="color: hsl(120, 100%, 40%);">+ res = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> if (!has_args) {</span><br><span> ast_log(LOG_ERROR, "ARI ApplicationMoveFailed missing required field args\n");</span><br><span> res = 0;</span><br><span>diff --git a/res/ari/ari_model_validators.h b/res/ari/ari_model_validators.h</span><br><span>index adf3e1a..f9285b4 100644</span><br><span>--- a/res/ari/ari_model_validators.h</span><br><span>+++ b/res/ari/ari_model_validators.h</span><br><span>@@ -1603,7 +1603,7 @@</span><br><span> * - asterisk_id: string</span><br><span> * - type: string (required)</span><br><span> * - application: string (required)</span><br><span style="color: hsl(0, 100%, 40%);">- * - timestamp: Date</span><br><span style="color: hsl(120, 100%, 40%);">+ * - timestamp: Date (required)</span><br><span> * - args: List[string] (required)</span><br><span> * - channel: Channel (required)</span><br><span> * - destination: string (required)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11274">change 11274</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/11274"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7813e5638e2821d11f4b968dc2aeab4f725190a6 </div>
<div style="display:none"> Gerrit-Change-Number: 11274 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>