aboutsummaryrefslogtreecommitdiff
path: root/jobs/gtad.yaml
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-19 19:23:10 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-19 19:23:10 +0900
commit55e0375851c439c97fc353c61d7c8b2b19485082 (patch)
treeae87f5a06cac202a3ed25afd9e8a433921c2f26a /jobs/gtad.yaml
parent878248db6122952998b390cf8ff4591c3f144474 (diff)
downloadlibquotient-55e0375851c439c97fc353c61d7c8b2b19485082.tar.gz
libquotient-55e0375851c439c97fc353c61d7c8b2b19485082.zip
Generated jobs: Don't dump empty strings to body parameters
This is important for (soon to be added) LoginJob, since the server is sensitive to getting an (even empty) entity for "medium" as opposed to omitting it entirely. This cannot be addressed on the spec level; on the other hand, removing empty parameters from the payload reduces useless bytes getting on the wire.
Diffstat (limited to 'jobs/gtad.yaml')
-rw-r--r--jobs/gtad.yaml7
1 files changed, 5 insertions, 2 deletions
diff --git a/jobs/gtad.yaml b/jobs/gtad.yaml
index d09de66c..4877aeb5 100644
--- a/jobs/gtad.yaml
+++ b/jobs/gtad.yaml
@@ -24,7 +24,10 @@ types:
- //: double
boolean: bool
string:
- - byte: &QByteArray { type: QByteArray, imports: <QtCore/QByteArray> }
+ - byte: &QByteArray
+ type: QByteArray
+ string?: true
+ imports: <QtCore/QByteArray>
- binary: *QByteArray
- date:
type: QDate
@@ -34,7 +37,7 @@ types:
type: QDateTime
avoidCopy?: true
imports: <QtCore/QDateTime>
- - //: { type: QString, imports: <QtCore/QString> }
+ - //: { type: QString, "string?": true, imports: <QtCore/QString> }
file:
type: QByteArray
imports: <QtCore/QByteArray>