-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More consistently set isArray to true for lists. (#11815)
Before this PR lists in struct and command fields have isArray (and often isList) set, while lists in attribute values have just isList set. This change tries to make the two cases look more similar by also setting isARray for list-typed attributes, which will ease template development going forward, due to not having to repeat the same logic for isList and isArray in templates that are trying to work with a value regardless of where it appears. This requires some workarounds in places that use ZAP built-in functions that sniff for "isArray" on the context object and started incorrectly picking it up when working with elements in list-typed attributes. Those same templates would have been broken for list-typed members of structs, but they mostly don't support structs yet, so weren't exercising those codepaths.
- Loading branch information
1 parent
fcf4c33
commit 10be5f6
Showing
6 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters