Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for fieldValue (0.19 sec)

  1. schema/serializer.go

    		}
    
    		if len(bytes) > 0 {
    			err = json.Unmarshal(bytes, fieldValue.Interface())
    		}
    	}
    
    	field.ReflectValueOf(ctx, dst).Set(fieldValue.Elem())
    	return
    }
    
    // Value implements serializer interface
    func (JSONSerializer) Value(ctx context.Context, field *Field, dst reflect.Value, fieldValue interface{}) (interface{}, error) {
    	result, err := json.Marshal(fieldValue)
    	if string(result) == "null" {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 08:28:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. schema/field.go

    						}
    
    						fieldValue = reflect.New(newFieldType)
    						if rvType != reflect.Indirect(fieldValue).Type() {
    							getRealFieldValue(fieldValue)
    						}
    
    						if fieldValue.IsValid() {
    							return
    						}
    					}
    				}
    			}
    
    			getRealFieldValue(fieldValue)
    		}
    	}
    
    	if v, isSerializer := fieldValue.Interface().(SerializerInterface); isSerializer {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanPropertyWriter.kt

                    writeNextProperty(fieldName, fieldValue, PropertyKind.Field)
                }
            }
        }
    
        private
        fun conventionValueOf(bean: Any, field: Field, isExplicitValue: Field) =
            field.get(bean).let { fieldValue ->
                if (isExplicitValue.get(bean).uncheckedCast()) {
                    fieldValue
                } else {
                    getConventionValue(bean, field, fieldValue)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. operator/pkg/validate/validate.go

    			}
    		case reflect.Ptr:
    			if util.IsNilOrInvalidValue(fieldValue.Elem()) {
    				continue
    			}
    			newPath := append(path, fieldName)
    			if fieldValue.Elem().Kind() == reflect.Struct {
    				errs = util.AppendErrs(errs, Validate(validations, fieldValue.Interface(), newPath, checkRequired))
    			} else {
    				errs = util.AppendErrs(errs, validateLeaf(validations, newPath, fieldValue, checkRequired))
    			}
    		default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. association.go

    			var fieldValue reflect.Value
    			if clear {
    				fieldValue = reflect.MakeSlice(oldFieldValue.Type(), 0, oldFieldValue.Cap())
    			} else {
    				fieldValue = reflect.MakeSlice(oldFieldValue.Type(), oldFieldValue.Len(), oldFieldValue.Cap())
    				reflect.Copy(fieldValue, oldFieldValue)
    			}
    
    			appendToFieldValues := func(ev reflect.Value) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/JavaRecordCodec.kt

                readPropertyValue(PropertyKind.Field, fieldName) { fieldValue ->
                    if (fieldValue == null || field.type.isInstance(fieldValue) || field.type.isPrimitive) {
                        args.add(fieldValue)
                    } else {
                        logPropertyProblem("deserialize") {
                            text("value ")
                            reference(fieldValue.toString())
                            text(" is not assignable to ")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/encoding/gob/debug.go

    	}
    }
    
    // MapValue:
    //
    //	uint(n) (FieldValue FieldValue)*n  [n (key, value) pairs]
    func (deb *debugger) mapValue(indent tab, wire *wireType) {
    	keyId := wire.MapT.Key
    	elemId := wire.MapT.Elem
    	u := deb.uint64()
    	length := int(u)
    	for i := 0; i < length; i++ {
    		deb.fieldValue(indent+1, keyId)
    		deb.fieldValue(indent+1, elemId)
    	}
    }
    
    // SliceValue:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ToBeFixedSpecInterceptor.groovy

            allInstanceFieldsOf(instance).findResults { field ->
                try {
                    def fieldValue = field.tap { accessible = true }.get(instance)
                    fieldValue instanceof ResettableExpectations ? fieldValue : null
                } catch (Exception ignored) {
                    null
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 13:10:05 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Logging.kt

        unsupportedType: KClass<*>,
        action: String,
        fieldName: String,
        fieldValue: Any? = null
    ) {
        withPropertyTrace(PropertyKind.Field, fieldName) {
            if (fieldValue == null) logUnsupported(action, unsupportedType)
            else logUnsupportedBaseType(action, unsupportedType, unpackType(fieldValue))
        }
    }
    
    
    fun IsolateContext.logUnsupportedBaseType(
        action: String,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.Status.yaml

    apiVersion: resource.k8s.io/v1alpha2
    code: 6
    details:
      causes:
      - field: fieldValue
        message: messageValue
        reason: reasonValue
      group: groupValue
      kind: kindValue
      name: nameValue
      retryAfterSeconds: 5
      uid: uidValue
    kind: Status
    message: messageValue
    metadata:
      continue: continueValue
      remainingItemCount: 4
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
    reason: reasonValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 06:52:03 UTC 2023
    - 432 bytes
    - Viewed (0)
Back to top