Commit 4ed3f6c
feat: plug schema on writes (#1065)
* feat: plug schema on writes
* feat: Chart of accounts & tx validation (#1109)
* wip chart of account & serialization
* tx validation
* improve structure
* fix test
* more tests & fixes
* cleanup & improve coverage
* remove rules prototype
* force schemaVersion if ledger has one
* cleanup & better naming
* remove useless if, rename regex
* change segment prop prefix
* add missing test & cleanup leftover errors
* missed pre-commit
* address review suggestions
- used strings.HasPrefix to avoid potential panics
- group var definitions
- validate .pattern type & regex
- fix .self validation `{ }`
* improve error message for forbidden keys
* fix permissive regexes
* table-driven tests & t.Parallel
* fix api pattern examples
* review fixes
- Use log validation method instead of ad-hoc controller check
- Handle errors: non-specified schema, already-existing schema version, missing chart
- Add e2e unspecified schema check
* fix test
---------
Co-authored-by: Alix Bott <bott.alix@gmail.com>1 parent 707b6d6 commit 4ed3f6c
File tree
62 files changed
+2510
-202
lines changed- cmd
- docs
- api
- events
- internal
- api
- bulking
- common
- v2
- controller/ledger
- storage
- bucket
- migrations
- 35-create-compute-hash-function
- 41-add-schema
- ledger
- openapi
- pkg/client
- .speakeasy
- logs
- docs
- models
- components
- operations
- sdks/v2
- models
- components
- operations
- speakeasyusagegen/.speakeasy/logs
- test/e2e
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
62 files changed
+2510
-202
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments