nested fields for matchi vtag
@@ -212,17 +212,27 @@ m_action = api.model(
# Virtual Tag
+
+nested_fields = api.model(
+ "VtagMatch",
+ {
+ "vtag": fields.String(),
+ "tags": fields.List(fields.String())
+ },
+)
+
m_virtualtag = api.model(
"Virtual Tag",
{
"id": fields.String(required=True),
"name": fields.String(required=True),
"description": fields.String(),
- "match": fields.List(fields.Raw()),
+ "match": fields.List(fields.Nested(nested_fields)),
# "match": fields.List(fields.Raw(required=True)),
},
)
+
# custom
m_custom = api.model(
