Feature/incosistent use of type array propery across code #109
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
I have updated all occurrences where particle.max_occurs > 1 was used directly to instead use the is_array property. This ensures consistency across the codebase and improves maintainability by centralizing the logic for determining whether a data type is an array. This change also facilitates compatibility with OpenV2G (I was trying to update the parser in order to make the autogenerated code compatible with OpenV2G), which has a different interpretation of unbounded data types with a max occurrence of 1. By using is_array consistently, any future modifications to array detection criteria can be easily applied throughout the project.
Issue ticket number and link
Issue number 107
Checklist before requesting a review