diff --git a/objcompiler.go b/objcompiler.go index aeec0d5..82ca772 100644 --- a/objcompiler.go +++ b/objcompiler.go @@ -308,6 +308,9 @@ func (c *objCompiler) compileDraft2019(s *Schema) error { } } + // annotations -- + s.Deprecated = c.boolean("deprecated") + return nil } diff --git a/schema.go b/schema.go index 683839c..a8f263e 100644 --- a/schema.go +++ b/schema.go @@ -91,6 +91,7 @@ type Schema struct { ReadOnly bool WriteOnly bool Examples []any + Deprecated bool } // --