diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 18:00:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 18:05:57 +0900 |
commit | 4289e72fdbe14b92d14fc18b9aa23cd0e2ae7eba (patch) | |
tree | e42ae4d2cc71ef3d9707151151260bb40d6df150 /lib | |
parent | d03cf06707ef99ae02442d95a489eaf29f8bb900 (diff) | |
download | libquotient-4289e72fdbe14b92d14fc18b9aa23cd0e2ae7eba.tar.gz libquotient-4289e72fdbe14b92d14fc18b9aa23cd0e2ae7eba.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jobs/gtad.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
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: <QtCore/QVector> - //: { type: QJsonArray, "avoidCopy?": true, imports: <QtCore/QJsonArray> } + map: + - /.+/: + type: QHash<QString, {{1}}> + avoidCopy?: true + imports: <QtCore/QHash> + - //: + type: QVariantHash + avoidCopy?: true + imports: <QtCore/QVariantHash> variant: { type: QVariant, "avoidCopy?": true, imports: <QtCore/QVariant> } schema: avoidCopy?: true |