Skip to content

Commit

Permalink
Merge pull request #912 from sashamelentyev/depr
Browse files Browse the repository at this point in the history
feat(dsl): add SetDeprecated
  • Loading branch information
ernado authored May 23, 2023
2 parents eae8b10 + 371480e commit d169b1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,12 @@ func (s *Schema) SetDefault(d json.RawMessage) *Schema {
return s
}

// SetDeprecated sets the Deprecated of the Schema.
func (s *Schema) SetDeprecated(d bool) *Schema {
s.Deprecated = d
return s
}

// ToNamed returns a NamedSchema wrapping the receiver.
func (s *Schema) ToNamed(n string) *NamedSchema {
return NewNamedSchema(n, s)
Expand Down

0 comments on commit d169b1e

Please sign in to comment.