Closed sherif-elmetainy closed 1 year ago
Hello @sherif-elmetainy. I've merged a PR which may affect your issue. Are you able to build the latest master branch and give it a try?
@chrusty Thanks for the fix. The latest version fixed the bug. Now the oneOf properties and the properties are both using camel case.
Hello and thanks for this nice package.
I encountered the following problem with generating schemas using the following options:
I use snake_case for the field names. for example
my_first_field
. theenforce_oneof
option results inoneOf
property in the schema having the field names in snake_case. However, thejson_fieldname
option causes theproperties
property in the schema to list the fields using camelCase. This inconsistency result in schema that can never be valid.Here is a test message to demonstrate the problem:
And here is the schema generated by running the command: