AI-499 : added "readonly" flag + rename "mandatory" -> "required"