updates schemas properties to definitions