mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to master@8b7bcb900d3c
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
6
vendor/k8s.io/kube-openapi/pkg/validation/spec/gnostic.go
generated
vendored
6
vendor/k8s.io/kube-openapi/pkg/validation/spec/gnostic.go
generated
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user