Skip to content

Commit

Permalink
fix/schema: missing Deprecated field
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-tekuri committed Jun 6, 2024
1 parent b06d232 commit 85449f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions objcompiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ func (c *objCompiler) compileDraft2019(s *Schema) error {
}
}

// annotations --
s.Deprecated = c.boolean("deprecated")

return nil
}

Expand Down
1 change: 1 addition & 0 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ type Schema struct {
ReadOnly bool
WriteOnly bool
Examples []any
Deprecated bool
}

// --
Expand Down

0 comments on commit 85449f7

Please sign in to comment.