We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35025b8 commit ee3070fCopy full SHA for ee3070f
2 files changed
json_explorer/__init__.py
@@ -1 +1 @@
1
-__version__ = "0.2.0"
+__version__ = "0.3.0"
json_explorer/codegen/__init__.py
@@ -50,7 +50,7 @@
50
)
51
52
# Version
53
54
55
56
# ============================================================================
@@ -145,6 +145,12 @@ def quick_generate(
145
except Exception as e:
146
raise GeneratorError(f"JSON analysis failed: {e}")
147
148
+ # Apply language-specific defaults
149
+ if language.lower() in ("python", "py"):
150
+ # Python uses snake_case for fields by default
151
+ if "field_case" not in options:
152
+ options["field_case"] = "snake"
153
+
154
# Generate code
155
result = generate_from_analysis(analysis, language, options)
156
0 commit comments