code: func defineType(schemaType string, value string) interface{} {
  	schemaType = TransToValidSchemeType(schemaType)
  	switch schemaType {
  	case "string":
  		return value
  	case "number":
  		v, err := strconv.ParseFloat(value, 64)
  		if err != nil {
  			panic(fmt.Errorf("enum value %s can't convert to %s err: %s", value, schemaType, err))
  		}
  		return v
  	case "integer":
  		v, err := strconv.Atoi(value)
  		if err != nil {
  			panic(fmt.Errorf("enum value %s can't convert to %s err: %s", value, schemaType, err))
  		}
  		return v
  	case "boolean":
  		v, err := strconv.ParseBool(value)
  		if err != nil {
  			panic(fmt.Errorf("enum value %s can't convert to %s err: %s", value, schemaType, err))
  		}
  		return v
  	default:
  		panic(fmt.Errorf("%s is unsupported type in enum value", schemaType))
  	}
  }
docs: // defineType enum value define the type (object and array unsupported)