Skip to content

Commit

Permalink
feat: Add cnds2024
Browse files Browse the repository at this point in the history
  • Loading branch information
ystkfujii committed Mar 8, 2024
1 parent 492b45e commit 71b579a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion internal/cfp/value/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ func (v *ConfName) String() string {

func (v *ConfName) Validate() error {
return validation.Validate(v.value,
validation.In(cicd2023, cndf2023, cndt2023),
validation.In(
cicd2023, cndf2023, cndt2023,
cnds2024,
),
)
}

Expand All @@ -62,16 +65,19 @@ var (
cicd2023 ConferenceKind = "cicd2023"
cndf2023 ConferenceKind = "cndf2023"
cndt2023 ConferenceKind = "cndt2023"
cnds2024 ConferenceKind = "cnds2024"

CICD2023 ConfName
CNDF2023 ConfName
CNDT2023 ConfName
CNDS2024 ConfName
)

func init() {
CICD2023, _ = NewConfName(cicd2023)
CNDF2023, _ = NewConfName(cndf2023)
CNDT2023, _ = NewConfName(cndt2023)
CNDS2024, _ = NewConfName(cnds2024)
}

var (
Expand Down
3 changes: 3 additions & 0 deletions internal/dkui/value/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,19 @@ var (
cicd2023 ConferenceKind = "cicd2023"
cndf2023 ConferenceKind = "cndf2023"
cndt2023 ConferenceKind = "cndt2023"
cnds2024 ConferenceKind = "cnds2024"

CICD2023 ConfName
CNDF2023 ConfName
CNDT2023 ConfName
CNDS2024 ConfName
)

func init() {
CICD2023, _ = NewConfName(cicd2023)
CNDF2023, _ = NewConfName(cndf2023)
CNDT2023, _ = NewConfName(cndt2023)
CNDS2024, _ = NewConfName(cnds2024)
}

// ProfileID represents an ID of user profile.
Expand Down
4 changes: 3 additions & 1 deletion internal/graph/model/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/graph/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ enum ConfName {
cicd2023
cndf2023
cndt2023
cnds2024
}

type Query {
Expand Down

0 comments on commit 71b579a

Please sign in to comment.