File system events correction in swagger and replacements in event lookup