aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi')
-rw-r--r--lib/csapi/gtad.yaml10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/csapi/gtad.yaml b/lib/csapi/gtad.yaml
index b83e489b..7d451296 100644
--- a/lib/csapi/gtad.yaml
+++ b/lib/csapi/gtad.yaml
@@ -59,7 +59,6 @@ analyzer:
+on:
- object: { type: QJsonObject, imports: <QtCore/QJsonObject> }
- $ref:
- - /m\.room\.member$/: pass # This $ref is only used in an array, see below
- +set: { moveOnly: }
+on:
- /state_event.yaml$/:
@@ -68,6 +67,8 @@ analyzer:
{ type: RoomEventPtr, imports: '"events/event.h"' }
- /event.yaml$/:
{ type: EventPtr, imports: '"events/event.h"' }
+ - /m\.room\.member$/: pass # This $ref is only used in an array, see below
+ - //: # Apply "avoidCopy" to all other ref'ed types
- array:
- string: { type: QStringList, imports: <QtCore/QStringList> }
- +set: { moveOnly: }
@@ -86,8 +87,7 @@ analyzer:
type: Events
- /.+/: { type: "QVector<{{1}}>", imports: <QtCore/QVector> }
- //: { type: QJsonArray, imports: <QtCore/QJsonArray> }
- # `additionalProperties` in OpenAPI
- - map:
+ - map: # `additionalProperties` in OpenAPI
- RoomState:
type: "std::unordered_map<QString, {{1}}>"
moveOnly:
@@ -98,8 +98,8 @@ analyzer:
- //:
type: QVariantHash
imports: '"variant_converters.h"'
- # A sequence `type` in OpenAPI
- - variant: { type: QVariant, imports: '"variant_converters.h"' }
+ - variant: # A sequence `type` (multitype) in OpenAPI
+ { type: QVariant, imports: '"variant_converters.h"' }
- schema: # Properties of inline structure definitions
*UseOmittable