Skip to content

Fix schema serialization crash on older EnergyPlus versions#21

Merged
samuelduchesne merged 1 commit intomainfrom
feature/bold-bose
Feb 28, 2026
Merged

Fix schema serialization crash on older EnergyPlus versions#21
samuelduchesne merged 1 commit intomainfrom
feature/bold-bose

Conversation

@samuelduchesne
Copy link
Copy Markdown
Contributor

@samuelduchesne samuelduchesne commented Feb 28, 2026

Summary

  • Fixes serialize_for_monaco crash on EnergyPlus v8.9-v9.5 where older epJSON schemas use boolean values for min/max bounds (e.g. "minimum": true) instead of numeric values, causing float('True') to fail

Test plan

  • Verified serialize_for_monaco succeeds for all 7 previously-failing versions (v8.9.0, v9.0.1, v9.1.0, v9.2.0, v9.3.0, v9.4.0, v9.5.0)
  • CI convert workflow passes for all versions

🤖 Generated with Claude Code

Older epJSON schemas have boolean values for min/max bounds (e.g.
`"minimum": true`) which cannot be converted to float. Guard the
bound extraction with isinstance checks to skip non-numeric values.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@samuelduchesne samuelduchesne changed the title Add IDF Monaco editor, schema metadata pills, and fixes Fix schema serialization crash on older EnergyPlus versions Feb 28, 2026
@samuelduchesne samuelduchesne merged commit 8cedf6c into main Feb 28, 2026
3 of 4 checks passed
@samuelduchesne samuelduchesne deleted the feature/bold-bose branch February 28, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant