preprocess: "%CLIENT_RELEASE_LABEL%": r0 "%CLIENT_MAJOR_VERSION%": r0 # 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: # OR # swaggerType: # - swaggerFormat: # - /swaggerFormatRegEx/: # - //: # default, if the format doesn't mach anything above # WHERE # targetTypeSpec = targetType OR # { type: targetType, imports: , } types: integer: - int64: qint64 - int32: qint32 - //: int number: - float: float - //: double boolean: bool string: - byte: &QByteArray type: QByteArray string?: true imports: - binary: *QByteArray - date: { type: QDate, "avoidCopy?": true, imports: } - dateTime: type: QDateTime avoidCopy?: true imports: - //: type: QString string?: true avoidCopy?: true imports: file: type: QByteArray imports: object: type: QJsonObject avoidCopy?: true imports: array: - /.+/: type: "QVector<{{1}}>" avoidCopy?: true imports: - //: { type: QJsonArray, "avoidCopy?": true, imports: } schema: avoidCopy?: true #operations: env: _scopeRenderer: "{{scopeCamelCase}}Job::" _literalQuote: '"' maybeCrefType: "{{#avoidCopy?}}const {{/avoidCopy?}}{{dataType.name}}{{#avoidCopy?}}&{{/avoidCopy?}}" qualifiedMaybeCrefType: "{{#avoidCopy?}}const {{/avoidCopy?}}{{dataType.qualifiedName}}{{#avoidCopy?}}&{{/avoidCopy?}}" # preamble: preamble.mustache copyrightName: Kitsune Ral copyrightEmail: # imports: { set: } # returnFile?: { bool: false } templates: - "{{base}}.h.mustache" - "{{base}}.cpp.mustache" #outFilesList: apifiles.txt