Skip to content

Commit

Permalink
Fix YAML loader for apidocs linter
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Mar 16, 2022
1 parent f68a615 commit e8c1227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/lib/tasks/dev.rake
Expand Up @@ -117,7 +117,7 @@ namespace :dev do
end
desc 'Run apidocs linter'
task :apidocs do
sh 'find public/apidocs-new -name \'*.yaml\' | xargs -P8 -I % ruby -e "require \'yaml\'; YAML.load_file \'%\'"'
sh 'find public/apidocs-new -name \'*.yaml\' | xargs -P8 -I % ruby -e "require \'yaml\'; YAML.load_file(\'%\', permitted_classes: [Time])"'
end
end

Expand Down

0 comments on commit e8c1227

Please sign in to comment.