AlexeyGrishin / schemasaurus

JSON schema iterator & validator
ISC License
11 stars 2 forks source link

Normalizer: when object has properties in schema, the properties defaults cannot be applied #6

Closed AlexeyGrishin closed 9 years ago

AlexeyGrishin commented 9 years ago

schema like that:

{
  type: 'object'
  default: {}
  properties: {
    a: {type: 'string', default: 'test'}
  }
}

when passed through normalizer fails to set a property even there is a default for parent object.