From 4289e72fdbe14b92d14fc18b9aa23cd0e2ae7eba Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 4 May 2018 18:00:28 +0900 Subject: gtad.yaml: Support OpenAPI value maps (aka additionalProperties) This is useful for things like tags map in m.tags event, or the map-of-maps-of-messages in SendToDeviceJob (coming in the next commit). Requires GTAD 0.4.9 or later. --- lib/jobs/gtad.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/jobs/gtad.yaml') diff --git a/lib/jobs/gtad.yaml b/lib/jobs/gtad.yaml index 89862da2..f606481e 100644 --- a/lib/jobs/gtad.yaml +++ b/lib/jobs/gtad.yaml @@ -93,6 +93,15 @@ analyzer: avoidCopy?: true imports: - //: { type: QJsonArray, "avoidCopy?": true, imports: } + map: + - /.+/: + type: QHash + avoidCopy?: true + imports: + - //: + type: QVariantHash + avoidCopy?: true + imports: variant: { type: QVariant, "avoidCopy?": true, imports: } schema: avoidCopy?: true -- cgit v1.2.3