Skip to content

add: domain core types - #1

Merged
nccapo merged 2 commits into
masterfrom
domain-types
Mar 5, 2026
Merged

add: domain core types#1
nccapo merged 2 commits into
masterfrom
domain-types

Conversation

@nccapo

@nccapo nccapo commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

Here's what was created

  • level.go - Level enum (info/warning/error/panic) with JSON marshal/unmarshal
  • frame.go - Frame (file, function, line, in_app, source context), SourceLine, ChainedError
  • event.go - Event — the full error event struct with all fields from the spec
  • group.go - GroupStatus enum + ErrorGroup aggregate
  • podcrash.go - CrashType enum + PodCrash struct
  • project.go - Project (id, name, dsn_key, created_at)
  • domain_test.go - 22 test cases covering every type's JSON roundtrip plus error paths

All three enums (Level, GroupStatus, CrashType) follow the same pattern: int8 under the hood, string JSON representation, Parse* constructor that returns a typed error on unknown values.

@nccapo nccapo added type:documentation Improvements or additions to documentation type:enhancement New feature or request labels Mar 5, 2026
@nccapo
nccapo merged commit afd7552 into master Mar 5, 2026
3 of 4 checks passed
@nccapo
nccapo deleted the domain-types branch March 5, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:documentation Improvements or additions to documentation type:enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant