Hello,

I have been doing some googling and trying various different approaches to 
solve my problem, but have so far been unsuccessful.

One of the post endpoints in my api takes an array of objects.  The array 
may include any combination of these objects and may contain
multiple versions of the same object.  Some example objects are:

"authorize": {
"id": {
"type": "field_type",
"value": "user_input/match_value"
}
}

"set_variable": {
"name": {
"type": "field_type",
"value": "user_input/match_value"
},
"condition": {
"type": "regex/equal",
"value": "if regex, regex string"
},
"value": {
"type": "field_type",
"value": "user_input/match_value"
}
}

The name of the array these come in in is "action".  Ideally I would like a 
user to be able to click the action array, and be taken to a
description of each of these actions.

The closest I have gotten so far is the following:

"rules": {
      "type": "object",
      "required": [
        "conditional",
        "action"
      ],
      "properties": {
        "conditional": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/conditional"
          }
        },
        "action": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/actions"
          }
        }
      }
    },
    "actions": {
      "type": "object",
      "properties": {
        "authorize": {
          "$ref": "#/definitions/authorize"
        },
        "set_variable": {
          "$ref": "#/definitions/set_variable"
        }
      }
    }

There are a lot more of these actions, but I am only including two for 
brevity.

Thanks for any suggestions!

-Nathan

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to