-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
21
-
5f94945e4 (dev), 293fd9208 (dev), a0eaf96b6 (dev), 939976f5e (dev), b90c3d0d1 (dev), e26b462aa (dev)
-
Foundation Sprint 135, Foundation Sprint 136, Foundation Sprint 137, Foundation Sprint 138, Foundation Sprint 139
There is no proper serialization for Header and Cookie non-trivial (NOT 'isPrimitiveType') parameters, like AnyValue, QMap<QString, T> (which is free-form object), QList<AnyValue>, etc
Since 3.0 (and still in 3.1.1) parameter serialization rules were updated and improved. Now non-trivial types can be used as Path, Query, Header, Cookie parameter.
See: https://spec.openapis.org/oas/v3.1.1.html#style-values
Actual result:
Compilation error at follwoing line:
QJsonObject parameter = paramName.asJsonObject();
Expected result:
Each ^isPrimitiveType parameter is transformed to the QString according serialization tables here:
https://spec.openapis.org/oas/v3.1.1.html#style-values
| For Gerrit Dashboard: QTBUG-137180 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 665008,30 | Refactor Header operation parameters block | dev | qt/qtopenapi | Status: MERGED | +2 | 0 |
| 673104,1 | WIP Header refactoring | dev | qt/qtopenapi | Status: ABANDONED | -2 | 0 |
| 676706,2 | Fix usage of optional array parameter in headers block | dev | qt/qtopenapi | Status: MERGED | +2 | 0 |
| 676709,18 | Refactor Cookie operation parameters block | dev | qt/qtopenapi | Status: MERGED | +2 | 0 |
| 676719,4 | Make headers optional in some test operations | dev | qt/qtopenapi | Status: MERGED | +2 | 0 |
| 678647,7 | Add a test operation with several header parameters | dev | qt/qtopenapi | Status: MERGED | +2 | 0 |
| 679619,2 | Fix compilation on Qt 6.8 | dev | qt/qtopenapi | Status: MERGED | +2 | 0 |