Skip to content

Commit

Permalink
Treat trailing-delimiter as true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Cirras committed Jan 18, 2025
1 parent 901b559 commit 781fc33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Incorrect (de)serialization of some data structures containing arrays with trailing delimiters.

## [1.0.0-RC1] - 2024-10-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion protocol-code-generator/Generator.ObjectCodeGenerator.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ procedure TObjectCodeGenerator.GenerateArray(Instruction: TDOMElement);
.Comment(GetComment(Instruction))
.ArrayField(True)
.Delimited(Delimited)
.TrailingDelimiter(GetBooleanAttribute(Instruction, 'trailing-delimiter'))
.TrailingDelimiter(GetBooleanAttribute(Instruction, 'trailing-delimiter', True))
.Build;

try
Expand Down

0 comments on commit 781fc33

Please sign in to comment.