Versions in this module Expand all Collapse all v0 v0.0.2 Mar 29, 2024 v0.0.1 Mar 29, 2024 Changes in this version + type Array bson.D + func NewArray() Array + func (spec Array) AllOf(a []Specification) Array + func (spec Array) AnyOf(a []Specification) Array + func (spec Array) BSONDocument() bson.D + func (spec Array) BSONType() string + func (spec Array) Not(a Specification) Array + func (spec Array) OneOf(a []Specification) Array + func (spec Array) SetAdditionalItems(value bool) Array + func (spec Array) SetAdditionalItemsSchema(specification Specification) Array + func (spec Array) SetDescription(d string) Array + func (spec Array) SetEnum(a bson.A) Array + func (spec Array) SetItems(items Specification) Array + func (spec Array) SetItemsArray(items []Specification) Array + func (spec Array) SetMaxItems(value int) Array + func (spec Array) SetMaxLength(value int) Array + func (spec Array) SetMinItems(value int) Array + func (spec Array) SetMinLength(value int) Array + func (spec Array) SetPattern(value string) Array + func (spec Array) SetUniqueItems(value bool) Array + type BinData bson.D + func NewBinData() BinData + func (spec BinData) AllOf(a []Specification) BinData + func (spec BinData) AnyOf(a []Specification) BinData + func (spec BinData) BSONDocument() bson.D + func (spec BinData) BSONType() string + func (spec BinData) Not(a Specification) BinData + func (spec BinData) OneOf(a []Specification) BinData + func (spec BinData) SetDescription(d string) BinData + func (spec BinData) SetEnum(a bson.A) BinData + type Bool bson.D + func NewBool() Bool + func (spec Bool) AllOf(a []Specification) Bool + func (spec Bool) AnyOf(a []Specification) Bool + func (spec Bool) BSONDocument() bson.D + func (spec Bool) BSONType() string + func (spec Bool) Not(a Specification) Bool + func (spec Bool) OneOf(a []Specification) Bool + func (spec Bool) SetDescription(d string) Bool + func (spec Bool) SetEnum(a bson.A) Bool + type Boolean bson.D + func NewBoolean() Boolean + func (spec Boolean) AllOf(a []Specification) Boolean + func (spec Boolean) AnyOf(a []Specification) Boolean + func (spec Boolean) BSONDocument() bson.D + func (spec Boolean) BSONType() string + func (spec Boolean) Not(a Specification) Boolean + func (spec Boolean) OneOf(a []Specification) Boolean + func (spec Boolean) SetDescription(d string) Boolean + func (spec Boolean) SetEnum(a bson.A) Boolean + type Date bson.D + func NewDate() Date + func (spec Date) AllOf(a []Specification) Date + func (spec Date) AnyOf(a []Specification) Date + func (spec Date) BSONDocument() bson.D + func (spec Date) BSONType() string + func (spec Date) Not(a Specification) Date + func (spec Date) OneOf(a []Specification) Date + func (spec Date) SetDescription(d string) Date + func (spec Date) SetEnum(a bson.A) Date + type Decimal bson.D + func NewDecimal() Decimal + func (spec Decimal) AllOf(a []Specification) Decimal + func (spec Decimal) AnyOf(a []Specification) Decimal + func (spec Decimal) BSONDocument() bson.D + func (spec Decimal) BSONType() string + func (spec Decimal) Not(a Specification) Decimal + func (spec Decimal) OneOf(a []Specification) Decimal + func (spec Decimal) SetDescription(d string) Decimal + func (spec Decimal) SetEnum(a bson.A) Decimal + func (spec Decimal) SetExclusiveMaximum(n primitive.Decimal128) Decimal + func (spec Decimal) SetExclusiveMinimum(n primitive.Decimal128) Decimal + func (spec Decimal) SetMaximum(n primitive.Decimal128) Decimal + func (spec Decimal) SetMinimum(n primitive.Decimal128) Decimal + func (spec Decimal) SetMultipleOf(n primitive.Decimal128) Decimal + type Double bson.D + func NewDouble() Double + func (spec Double) AllOf(a []Specification) Double + func (spec Double) AnyOf(a []Specification) Double + func (spec Double) BSONDocument() bson.D + func (spec Double) BSONType() string + func (spec Double) Not(a Specification) Double + func (spec Double) OneOf(a []Specification) Double + func (spec Double) SetDescription(d string) Double + func (spec Double) SetEnum(a bson.A) Double + func (spec Double) SetExclusiveMaximum(n float64) Double + func (spec Double) SetExclusiveMinimum(n float64) Double + func (spec Double) SetMaximum(n float64) Double + func (spec Double) SetMinimum(n float64) Double + func (spec Double) SetMultipleOf(n float64) Double + type Int bson.D + func NewInt() Int + func (spec Int) AllOf(a []Specification) Int + func (spec Int) AnyOf(a []Specification) Int + func (spec Int) BSONDocument() bson.D + func (spec Int) BSONType() string + func (spec Int) Not(a Specification) Int + func (spec Int) OneOf(a []Specification) Int + func (spec Int) SetDescription(d string) Int + func (spec Int) SetEnum(a bson.A) Int + func (spec Int) SetExclusiveMaximum(n int32) Int + func (spec Int) SetExclusiveMinimum(n int32) Int + func (spec Int) SetMaximum(n int32) Int + func (spec Int) SetMinimum(n int32) Int + func (spec Int) SetMultipleOf(n int32) Int + type Long bson.D + func NewLong() Long + func (spec Long) AllOf(a []Specification) Long + func (spec Long) AnyOf(a []Specification) Long + func (spec Long) BSONDocument() bson.D + func (spec Long) BSONType() string + func (spec Long) Not(a Specification) Long + func (spec Long) OneOf(a []Specification) Long + func (spec Long) SetDescription(d string) Long + func (spec Long) SetEnum(a bson.A) Long + func (spec Long) SetExclusiveMaximum(n int64) Long + func (spec Long) SetExclusiveMinimum(n int64) Long + func (spec Long) SetMaximum(n int64) Long + func (spec Long) SetMinimum(n int64) Long + func (spec Long) SetMultipleOf(n int64) Long + type Null bson.D + func NewNull() Null + func (spec Null) AllOf(a []Specification) Null + func (spec Null) AnyOf(a []Specification) Null + func (spec Null) BSONDocument() bson.D + func (spec Null) BSONType() string + func (spec Null) Not(a Specification) Null + func (spec Null) OneOf(a []Specification) Null + func (spec Null) SetDescription(d string) Null + func (spec Null) SetEnum(a bson.A) Null + type Object bson.D + func NewObject() Object + func NewObjectFromTypeWithTags(t reflect.Type) (Object, error) + func (spec Object) AllOf(a []Specification) Object + func (spec Object) AnyOf(a []Specification) Object + func (spec Object) AppendPatternProperty(expression string, specification Specification) Object + func (spec Object) AppendProperty(name string, required bool, specification Specification) Object + func (spec Object) AppendRequired(name string) Object + func (spec Object) BSONDocument() bson.D + func (spec Object) BSONType() string + func (spec Object) CheckStructTags(t reflect.Type) error + func (spec Object) Not(a Specification) Object + func (spec Object) OneOf(a []Specification) Object + func (spec Object) SetAdditionalProperties(value bool) Object + func (spec Object) SetDescription(d string) Object + func (spec Object) SetEnum(a bson.A) Object + func (spec Object) SetMaxProperties(value bool) Object + func (spec Object) SetMinProperties(value int) Object + func (spec Object) SetTitle(value string) Object + type ObjectID bson.D + func NewObjectID() ObjectID + func (spec ObjectID) AllOf(a []Specification) ObjectID + func (spec ObjectID) AnyOf(a []Specification) ObjectID + func (spec ObjectID) BSONDocument() bson.D + func (spec ObjectID) BSONType() string + func (spec ObjectID) Not(a Specification) ObjectID + func (spec ObjectID) OneOf(a []Specification) ObjectID + func (spec ObjectID) SetDescription(d string) ObjectID + func (spec ObjectID) SetEnum(a bson.A) ObjectID + type Regex bson.D + func NewRegex() Regex + func (spec Regex) AllOf(a []Specification) Regex + func (spec Regex) AnyOf(a []Specification) Regex + func (spec Regex) BSONDocument() bson.D + func (spec Regex) BSONType() string + func (spec Regex) Not(a Specification) Regex + func (spec Regex) OneOf(a []Specification) Regex + func (spec Regex) SetDescription(d string) Regex + func (spec Regex) SetEnum(a bson.A) Regex + type Specification interface + BSONDocument func() bson.D + BSONType func() string + type String bson.D + func NewString() String + func (spec String) AllOf(a []Specification) String + func (spec String) AnyOf(a []Specification) String + func (spec String) BSONDocument() bson.D + func (spec String) BSONType() string + func (spec String) MaxLength(d int) String + func (spec String) MinLength(d int) String + func (spec String) Not(a Specification) String + func (spec String) OneOf(a []Specification) String + func (spec String) SetDescription(d string) String + func (spec String) SetEnum(a bson.A) String + type Timestamp bson.D + func NewTimestamp() Timestamp + func (spec Timestamp) AllOf(a []Specification) Timestamp + func (spec Timestamp) AnyOf(a []Specification) Timestamp + func (spec Timestamp) BSONDocument() bson.D + func (spec Timestamp) BSONType() string + func (spec Timestamp) Not(a Specification) Timestamp + func (spec Timestamp) OneOf(a []Specification) Timestamp + func (spec Timestamp) SetDescription(d string) Timestamp + func (spec Timestamp) SetEnum(a bson.A) Timestamp + type UUID bson.D + func NewUUID() UUID + func (spec UUID) AllOf(a []Specification) UUID + func (spec UUID) AnyOf(a []Specification) UUID + func (spec UUID) BSONDocument() bson.D + func (spec UUID) BSONType() string + func (spec UUID) Not(a Specification) UUID + func (spec UUID) OneOf(a []Specification) UUID + func (spec UUID) SetDescription(d string) UUID + func (spec UUID) SetEnum(a bson.A) UUID