You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2023. It is now read-only.
Hey @naderafshari, as I see it the options look like they are parsed correctly 🧐 There is no interpretations of the options, they are passed as is.
Are you sure the options are correct? I know that QuickType has some options that are not matched one-to-one and no real documentation to figure it out. You might need to look through the source code to make sure.
I think you are right it is a bug in here, the only way I see it can be fixed is to create our own option matching and creating accurate enum instances...
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Command used:
ag asyncapi.yaml @lagoni/asyncapi-quicktype-template
-o output --param "quicktypeLanguage=cplusplus"
--param 'renderOptions={"memberNamingStyle":"camelValue"}'
--output ${CMAKE_CURRENT_BINARY_DIR} --force-write
Output from generator:
[ 26%] Invoking generator to generate AsyncAPI C++ files.
Generating files with options {
"parameters": {
"quicktypeLanguage": "cplusplus",
"renderOptions": "{"memberNamingStyle":"camelValue"}"
},
"quicktypeLanguage": "cplusplus",
"fileExtension": "cpp",
"generatorTargetDir": "/work/sgn-skeleton-cpp/_build/api/async",
"targetDir": "",
"renderOptions": {
"memberNamingStyle": "camelValue"
}
}
Rendering schema LinkStateChangeEvent with render options {
"memberNamingStyle": "camelValue"
}
Generated file:
class LinkStateChangeEvent {
public:
LinkStateChangeEvent() = default;
virtual ~LinkStateChangeEvent() = default;
As you can see member naming is not camel case. For example, eventTime instead of event_time
Is this a generator problem or a quicktype problem?
The text was updated successfully, but these errors were encountered: