Skip to content

Commit e156b9d

Browse files
author
Kevin Paulisse
committed
Add JSON as an available filter
1 parent 70e1de5 commit e156b9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/octocatalog-diff/catalog-diff/filter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require_relative '../api/v1/diff'
22
require_relative 'filter/absent_file'
33
require_relative 'filter/compilation_dir'
4+
require_relative 'filter/json'
45
require_relative 'filter/yaml'
56

67
require 'stringio'
@@ -12,7 +13,7 @@ class Filter
1213
attr_accessor :logger
1314

1415
# List the available filters here (by class name) for use in the validator method.
15-
AVAILABLE_FILTERS = %w(AbsentFile CompilationDir YAML).freeze
16+
AVAILABLE_FILTERS = %w(AbsentFile CompilationDir JSON YAML).freeze
1617

1718
# Public: Determine whether a particular filter exists. This can be used to validate
1819
# a user-submitted filter.

0 commit comments

Comments
 (0)