aboutsummaryrefslogtreecommitdiff
path: root/jobs/gtad.yaml
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-06 19:15:51 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-06 19:15:51 +0900
commit905263ceb5e2e13b862bec0a64f6d84eca3c2e9d (patch)
tree40ef6c56e1d72e215bf649928bfae9f82aa0b7a4 /jobs/gtad.yaml
parentea2dcf5d6c9329a14b4e0039bd2dc45ac3fd89d8 (diff)
downloadlibquotient-905263ceb5e2e13b862bec0a64f6d84eca3c2e9d.tar.gz
libquotient-905263ceb5e2e13b862bec0a64f6d84eca3c2e9d.zip
GTAD pre-0.4, with local data types and parametrised arrays; make avoidCopy? actually work
Along with this: - avoid copying of QStrings (unneeded convenience in our case) - even less empty lines
Diffstat (limited to 'jobs/gtad.yaml')
-rw-r--r--jobs/gtad.yaml35
1 files changed, 25 insertions, 10 deletions
diff --git a/jobs/gtad.yaml b/jobs/gtad.yaml
index 4877aeb5..5f370ac5 100644
--- a/jobs/gtad.yaml
+++ b/jobs/gtad.yaml
@@ -1,8 +1,11 @@
preprocess:
"%CLIENT_RELEASE_LABEL%": r0
"%CLIENT_MAJOR_VERSION%": r0
- "unsigned:": "unsigned_:"
- "default:": "default_:"
+ # FIXME: the below only fixes C++ compilation but not actual work - the code
+ # will try to reach out for wrong values in JSON payloads
+ "signed:": "signedData:"
+ "unsigned:": "unsignedData:"
+ "default:": "isDefault:"
# Structure:
# swaggerType: <targetTypeSpec>
@@ -29,25 +32,37 @@ types:
string?: true
imports: <QtCore/QByteArray>
- binary: *QByteArray
- - date:
- type: QDate
- avoidCopy?: true
- imports: <QtCore/QDate>
+ - date: { type: QDate, "avoidCopy?": true, imports: <QtCore/QDate> }
- dateTime:
type: QDateTime
avoidCopy?: true
imports: <QtCore/QDateTime>
- - //: { type: QString, "string?": true, imports: <QtCore/QString> }
+ - //:
+ type: QString
+ string?: true
+ avoidCopy?: true
+ imports: <QtCore/QString>
file:
type: QByteArray
imports: <QtCore/QByteArray>
- "returnFile?": true
- object: { type: QJsonObject, "avoidCopy?": true, imports: <QtCore/QJsonObject> }
- array: { type: "QVector<{{1}}>", "avoidCopy?": true, imports: <QtCore/QVector> }
+ returnFile?: true
+ object:
+ type: QJsonObject
+ avoidCopy?: true
+ imports: <QtCore/QJsonObject>
+ array:
+ - /.+/:
+ type: "QVector<{{1}}>"
+ avoidCopy?: true
+ imports: <QtCore/QVector>
+ - //: { type: QJsonArray, "avoidCopy?": true, imports: <QtCore/QJsonArray> }
#operations:
env:
+ _typeRenderer: "{{#scope}}{{scopeCamelCase}}Job::{{/scope}}{{name}}"
+ maybeCrefType: "{{#avoidCopy?}}const {{/avoidCopy?}}{{dataType.name}}{{#avoidCopy?}}&{{/avoidCopy?}}"
+ qualifiedMaybeCrefType: "{{#avoidCopy?}}const {{/avoidCopy?}}{{dataType.qualifiedName}}{{#avoidCopy?}}&{{/avoidCopy?}}"
# preamble: preamble.mustache
copyrightName: Kitsune Ral
copyrightEmail: <kitsune-ral@users.sf.net>