The discussion revolves around the deprecation of InputValidation in Discourse, as users migrate from version 2.7.0 to the latest version. piratdavid seeks guidance on replacing InputValidation in their plugins, providing a code example where it’s used for title validation. pfaffman asks for more context, and merefield suggests using git log -SInputValidation -p to find modern alternatives, revealing that EmberObject.create is now used instead. piratdavid appreciates the tip and confirms the approach is simpler than expected, avoiding the need to adopt specific validation classes like name-validation.js.
I’m migrating a rather old forum version (2.7.0) to the latest discourse version. One problem I’m encountering is that ‘discourse/models/input-validation’ seems to be removed. Could someone guide me to migrate this to whatever solution is accurate now. It seems that input validation is done pretty different now.
Great! I figured I might be able to find git changes related to that but I’m not really a git genie. Thank you! That will help a lot. I thought I had to start using the more specific validation classes that exist, name-validation.js etc. This looks easy enough.