Skip to content

fix(sirens): safely parse siren states whether defined as array or object - #381

Open
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:fix/sirens-parse-states-array-object
Open

CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:fix/sirens-parse-states-array-object

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Summary

Safely parses siren mode states in vehicle JSONC configurations whether defined as a JSON object (keyed map) or as an indexed array.

Details

  • Supports both \"states\": { \"mode1\": { ... } } and \"states\": [ { ... } ] format structures.
  • Prevents parsing exceptions and missing siren pattern modes across varied mod formats.

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