chore: handle push of unchanged schema
This commit is contained in:
@@ -6,6 +6,10 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Supergraph interface {
|
||||
IsSupergraph()
|
||||
}
|
||||
|
||||
type InputSubGraph struct {
|
||||
Ref string `json:"ref"`
|
||||
Service string `json:"service"`
|
||||
@@ -23,3 +27,18 @@ type SubGraph struct {
|
||||
ChangedBy string `json:"changedBy"`
|
||||
ChangedAt time.Time `json:"changedAt"`
|
||||
}
|
||||
|
||||
type SubGraphs struct {
|
||||
ID string `json:"id"`
|
||||
MinDelaySeconds int `json:"minDelaySeconds"`
|
||||
SubGraphs []*SubGraph `json:"subGraphs"`
|
||||
}
|
||||
|
||||
func (SubGraphs) IsSupergraph() {}
|
||||
|
||||
type Unchanged struct {
|
||||
ID string `json:"id"`
|
||||
MinDelaySeconds int `json:"minDelaySeconds"`
|
||||
}
|
||||
|
||||
func (Unchanged) IsSupergraph() {}
|
||||
|
||||
Reference in New Issue
Block a user