forked from loafle/openapi-generator-original
Fix#5463 - [QT5CPP] missing SWGUUID when generating client based on swager.yaml containing a string with format 'uuid' (#5472)
* Add support to UUID type * Simplify and use a simple QString instead of a QUuid. Work for using a QUuid is way larger than supporting QString (imply modifying multiple c++ templates). Current needs are fullfill with the use of a simple QString, so I let the use of QUuid for future enhancement. * - add windows executable for generating qt5 security samples - update sample clients PS : some modifications on the samples are not related to the patch I applied. Were the samples up-to-date ?
This commit is contained in:
@@ -126,6 +126,11 @@ public class Qt5CPPGenerator extends DefaultCodegen implements CodegenConfig {
|
||||
// mapped to String as a workaround
|
||||
typeMapping.put("binary", "QString");
|
||||
typeMapping.put("ByteArray", "QByteArray");
|
||||
// UUID support - possible enhancement : use QUuid instead of QString.
|
||||
// beware though that Serialisation/deserialisation of QUuid does not
|
||||
// come out of the box and will need to be sorted out (at least imply
|
||||
// modifications on multiple templates)
|
||||
typeMapping.put("UUID", "QString");
|
||||
|
||||
importMapping = new HashMap<String, String>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user