[asterisk-commits] dlee: branch dlee/ari-event-remodel r392106 - in /team/dlee/ari-event-remodel...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 17 15:54:06 CDT 2013


Author: dlee
Date: Mon Jun 17 15:54:05 2013
New Revision: 392106

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392106
Log:
Removed redundant prototypes from ari_model.h

Modified:
    team/dlee/ari-event-remodel/res/stasis_http/ari_model.h
    team/dlee/ari-event-remodel/rest-api-templates/ari_model.h.mustache

Modified: team/dlee/ari-event-remodel/res/stasis_http/ari_model.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-event-remodel/res/stasis_http/ari_model.h?view=diff&rev=392106&r1=392105&r2=392106
==============================================================================
--- team/dlee/ari-event-remodel/res/stasis_http/ari_model.h (original)
+++ team/dlee/ari-event-remodel/res/stasis_http/ari_model.h Mon Jun 17 15:54:05 2013
@@ -31,8 +31,6 @@
 #define _ASTERISK_ARI_MODEL_H
 
 #include "asterisk/json.h"
-
-/*! @} */
 
 /*! @{
  * \brief Validator for native Swagger type.
@@ -53,6 +51,8 @@
 
 /*! @} */
 
+/*! @{ */
+
 /*!
  * \brief Validator for a Swagger List[]/JSON array.
  *
@@ -63,6 +63,8 @@
  */
 int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
 
+/*! @} */
+
 /*!
  * \brief Validator for AsteriskInfo.
  *
@@ -74,37 +76,6 @@
  */
 int ari_validate_asterisk_info(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for Endpoint.
  *
@@ -118,37 +89,6 @@
  */
 int ari_validate_endpoint(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for CallerID.
  *
@@ -160,37 +100,6 @@
  */
 int ari_validate_caller_id(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for Channel.
  *
@@ -202,37 +111,6 @@
  */
 int ari_validate_channel(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for Dialed.
  *
@@ -244,37 +122,6 @@
  */
 int ari_validate_dialed(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for DialplanCEP.
  *
@@ -286,37 +133,6 @@
  */
 int ari_validate_dialplan_cep(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for Bridge.
  *
@@ -330,37 +146,6 @@
  */
 int ari_validate_bridge(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for LiveRecording.
  *
@@ -372,37 +157,6 @@
  */
 int ari_validate_live_recording(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for StoredRecording.
  *
@@ -414,37 +168,6 @@
  */
 int ari_validate_stored_recording(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for Sound.
  *
@@ -456,37 +179,6 @@
  */
 int ari_validate_sound(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for Playback.
  *
@@ -498,37 +190,6 @@
  */
 int ari_validate_playback(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ApplicationReplaced.
  *
@@ -542,37 +203,6 @@
  */
 int ari_validate_application_replaced(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for BridgeCreated.
  *
@@ -584,37 +214,6 @@
  */
 int ari_validate_bridge_created(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for BridgeDestroyed.
  *
@@ -626,37 +225,6 @@
  */
 int ari_validate_bridge_destroyed(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for BridgeMerged.
  *
@@ -668,37 +236,6 @@
  */
 int ari_validate_bridge_merged(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelCallerId.
  *
@@ -710,37 +247,6 @@
  */
 int ari_validate_channel_caller_id(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelCreated.
  *
@@ -752,37 +258,6 @@
  */
 int ari_validate_channel_created(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelDestroyed.
  *
@@ -794,37 +269,6 @@
  */
 int ari_validate_channel_destroyed(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelDialplan.
  *
@@ -836,37 +280,6 @@
  */
 int ari_validate_channel_dialplan(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelDtmfReceived.
  *
@@ -880,37 +293,6 @@
  */
 int ari_validate_channel_dtmf_received(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelEnteredBridge.
  *
@@ -922,37 +304,6 @@
  */
 int ari_validate_channel_entered_bridge(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelHangupRequest.
  *
@@ -964,37 +315,6 @@
  */
 int ari_validate_channel_hangup_request(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelLeftBridge.
  *
@@ -1006,37 +326,6 @@
  */
 int ari_validate_channel_left_bridge(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelSnapshot.
  *
@@ -1048,37 +337,6 @@
  */
 int ari_validate_channel_snapshot(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelStateChange.
  *
@@ -1090,37 +348,6 @@
  */
 int ari_validate_channel_state_change(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelUserevent.
  *
@@ -1132,37 +359,6 @@
  */
 int ari_validate_channel_userevent(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for ChannelVarset.
  *
@@ -1174,37 +370,6 @@
  */
 int ari_validate_channel_varset(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for Event.
  *
@@ -1216,37 +381,6 @@
  */
 int ari_validate_event(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for PlaybackFinished.
  *
@@ -1258,37 +392,6 @@
  */
 int ari_validate_playback_finished(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for PlaybackStarted.
  *
@@ -1300,37 +403,6 @@
  */
 int ari_validate_playback_started(struct ast_json *json);
 
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
-
 /*!
  * \brief Validator for StasisEnd.
  *
@@ -1341,37 +413,6 @@
  * \returns False (zero) if invalid.
  */
 int ari_validate_stasis_end(struct ast_json *json);
-
-/*! @} */
-
-/*! @{
- * \brief Validator for native Swagger type.
- *
- * \param json JSON object to validate.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-
-int ari_validate_byte(struct ast_json *json);
-int ari_validate_boolean(struct ast_json *json);
-int ari_validate_int(struct ast_json *json);
-int ari_validate_long(struct ast_json *json);
-int ari_validate_float(struct ast_json *json);
-int ari_validate_double(struct ast_json *json);
-int ari_validate_string(struct ast_json *json);
-int ari_validate_date(struct ast_json *json);
-
-/*! @} */
-
-/*!
- * \brief Validator for a Swagger List[]/JSON array.
- *
- * \param json JSON object to validate.
- * \param fn Validator to call on every element in the array.
- * \returns True (non-zero) if valid.
- * \returns False (zero) if invalid.
- */
-int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
 
 /*!
  * \brief Validator for StasisStart.

Modified: team/dlee/ari-event-remodel/rest-api-templates/ari_model.h.mustache
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-event-remodel/rest-api-templates/ari_model.h.mustache?view=diff&rev=392106&r1=392105&r2=392106
==============================================================================
--- team/dlee/ari-event-remodel/rest-api-templates/ari_model.h.mustache (original)
+++ team/dlee/ari-event-remodel/rest-api-templates/ari_model.h.mustache Mon Jun 17 15:54:05 2013
@@ -29,11 +29,6 @@
 #define _ASTERISK_ARI_MODEL_H
 
 #include "asterisk/json.h"
-{{#apis}}
-{{#api_declaration}}
-{{#models}}
-
-/*! @} */
 
 /*! @{
  * \brief Validator for native Swagger type.
@@ -54,6 +49,8 @@
 
 /*! @} */
 
+/*! @{ */
+
 /*!
  * \brief Validator for a Swagger List[]/JSON array.
  *
@@ -63,6 +60,11 @@
  * \returns False (zero) if invalid.
  */
 int ari_validate_list(struct ast_json *json, int (*fn)(struct ast_json *));
+
+/*! @} */
+{{#apis}}
+{{#api_declaration}}
+{{#models}}
 
 /*!
  * \brief Validator for {{id}}.




More information about the asterisk-commits mailing list