(field, key, options)
| 344 | } |
| 345 | |
| 346 | function createDefaultField(field, key, options) { |
| 347 | if (options.validate && hasFlag(field.flags, "required")) { |
| 348 | throw Error("Missing REQUIRED value: \"" + key + "\" of type " + field.type); |
| 349 | } else { |
| 350 | return createFieldOfType(field.type, null, options); |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | |
| 355 | function createFieldOfType(in_type, value, options) { |
no test coverage detected