Skip to content

Commit ee3070f

Browse files
committed
- Adapted to analyzer + schema improvements
1 parent 35025b8 commit ee3070f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

json_explorer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.0"
1+
__version__ = "0.3.0"

json_explorer/codegen/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
)
5151

5252
# Version
53-
__version__ = "0.2.0"
53+
__version__ = "0.3.0"
5454

5555

5656
# ============================================================================
@@ -145,6 +145,12 @@ def quick_generate(
145145
except Exception as e:
146146
raise GeneratorError(f"JSON analysis failed: {e}")
147147

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+
148154
# Generate code
149155
result = generate_from_analysis(analysis, language, options)
150156

0 commit comments

Comments
 (0)