-
Notifications
You must be signed in to change notification settings - Fork 3
Description
When trying to implement the Gumi Live API login request, which is not formatted as a JSON but rather as a PHP parameters (login?ak=aaa&dn=bbb), the code currently would not generate a processable class that can input and output this type, due to the fact that is mostly oriented to glaze cpp.
An idea would be to begin a refactoring of the code that would support:
- Normal C++ class generations (and this is where the Gumi Live API login request as PHP parameter would show)
- Glaze C++ (JSON) specialized generation
- Possibly something for Drogon PHP classes?
Perhaps a division like such would help the code of the glazecpp.py (which is huge) and might allow for implementation of others JSON generations other than Glaze.
Another idea would be to have a special keyword (like @processable(json = false) ) that would still generate a C++ structure but with no JSON class, or to leave the generation as-is as simply not use the generated class for JSON serialization.