update module dependencies to latest version

This commit is contained in:
Humble Chirammal
2022-11-03 17:20:01 +05:30
parent ba73208e90
commit 1651e0f823
282 changed files with 31763 additions and 11473 deletions

View File

@@ -219,8 +219,8 @@ func (k *Ref) FromGnostic(g string) error {
// Caveats:
//
// - gnostic v2 documents treats zero as unspecified for numerical fields of
//CommonValidations fields such as Maximum, Minimum, MaximumItems, etc.
//There will always be data loss if one of the values of these fields is set to zero.
// CommonValidations fields such as Maximum, Minimum, MaximumItems, etc.
// There will always be data loss if one of the values of these fields is set to zero.
//
// Returns:
//
@@ -1263,6 +1263,8 @@ func (k *Schema) FromGnostic(g *openapi_v2.Schema) (ok bool, err error) {
k.AdditionalProperties.Allows = g.AdditionalProperties.GetBoolean()
} else {
k.AdditionalProperties.Schema = &Schema{}
k.AdditionalProperties.Allows = true
if nok, err := k.AdditionalProperties.Schema.FromGnostic(g.AdditionalProperties.GetSchema()); err != nil {
return false, err
} else if !nok {