Skip to content

Commit

Permalink
Add JSON struct tags to aggregate/process root stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Sep 26, 2024
1 parent 4e45ae3 commit 7a36444
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ The format is based on [Keep a Changelog], and this project adheres to
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html

## [0.11.1] - 2024-09-27

### Added

- Added JSON struct tags to stub types.

## [0.11.0] - 2024-09-25

### Added
Expand Down Expand Up @@ -77,6 +83,7 @@ The format is based on [Keep a Changelog], and this project adheres to
[0.10.2]: https://github.com/dogmatiq/enginekit/releases/v0.10.2
[0.10.3]: https://github.com/dogmatiq/enginekit/releases/v0.10.3
[0.11.0]: https://github.com/dogmatiq/enginekit/releases/v0.11.0
[0.11.1]: https://github.com/dogmatiq/enginekit/releases/v0.11.1

<!-- version template
## [0.0.1] - YYYY-MM-DD
Expand Down
2 changes: 1 addition & 1 deletion enginetest/stubs/aggregate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "github.com/dogmatiq/dogma"

// AggregateRootStub is a test implementation of [dogma.AggregateRoot].
type AggregateRootStub struct {
AppliedEvents []dogma.Event
AppliedEvents []dogma.Event `json:"applied_events,omitempty"`
ApplyEventFunc func(dogma.Event) `json:"-"`
}

Expand Down
2 changes: 1 addition & 1 deletion enginetest/stubs/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

// ProcessRootStub is a test implementation of [dogma.ProcessRoot].
type ProcessRootStub struct {
Value any
Value any `json:"value,omitempty"`
}

var _ dogma.ProcessRoot = &ProcessRootStub{}
Expand Down

0 comments on commit 7a36444

Please sign in to comment.