diff --git a/Steepfile b/Steepfile index c85326c..b3fec1a 100644 --- a/Steepfile +++ b/Steepfile @@ -4,8 +4,8 @@ target :lib do check "lib/openapi_parser.rb" check "lib/openapi_parser/config.rb" - check "lib/openapi_parser/schema_validators/options.rb" - check "lib/openapi_parser/schema_validators/base.rb" + check "lib/openapi_parser/schema_validator/options.rb" + check "lib/openapi_parser/schema_validator/base.rb" library 'uri', 'json', 'pathname' end diff --git a/lib/openapi_parser/schema_validator.rb b/lib/openapi_parser/schema_validator.rb index 90c7b1b..fd9d2af 100644 --- a/lib/openapi_parser/schema_validator.rb +++ b/lib/openapi_parser/schema_validator.rb @@ -1,18 +1,18 @@ -require_relative 'schema_validators/options' -require_relative 'schema_validators/enumable' -require_relative 'schema_validators/minimum_maximum' -require_relative 'schema_validators/base' -require_relative 'schema_validators/string_validator' -require_relative 'schema_validators/integer_validator' -require_relative 'schema_validators/float_validator' -require_relative 'schema_validators/boolean_validator' -require_relative 'schema_validators/object_validator' -require_relative 'schema_validators/array_validator' -require_relative 'schema_validators/any_of_validator' -require_relative 'schema_validators/all_of_validator' -require_relative 'schema_validators/one_of_validator' -require_relative 'schema_validators/nil_validator' -require_relative 'schema_validators/unspecified_type_validator' +require_relative 'schema_validator/options' +require_relative 'schema_validator/enumable' +require_relative 'schema_validator/minimum_maximum' +require_relative 'schema_validator/base' +require_relative 'schema_validator/string_validator' +require_relative 'schema_validator/integer_validator' +require_relative 'schema_validator/float_validator' +require_relative 'schema_validator/boolean_validator' +require_relative 'schema_validator/object_validator' +require_relative 'schema_validator/array_validator' +require_relative 'schema_validator/any_of_validator' +require_relative 'schema_validator/all_of_validator' +require_relative 'schema_validator/one_of_validator' +require_relative 'schema_validator/nil_validator' +require_relative 'schema_validator/unspecified_type_validator' class OpenAPIParser::SchemaValidator # validate value by schema diff --git a/lib/openapi_parser/schema_validators/all_of_validator.rb b/lib/openapi_parser/schema_validator/all_of_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/all_of_validator.rb rename to lib/openapi_parser/schema_validator/all_of_validator.rb diff --git a/lib/openapi_parser/schema_validators/any_of_validator.rb b/lib/openapi_parser/schema_validator/any_of_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/any_of_validator.rb rename to lib/openapi_parser/schema_validator/any_of_validator.rb diff --git a/lib/openapi_parser/schema_validators/array_validator.rb b/lib/openapi_parser/schema_validator/array_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/array_validator.rb rename to lib/openapi_parser/schema_validator/array_validator.rb diff --git a/lib/openapi_parser/schema_validators/base.rb b/lib/openapi_parser/schema_validator/base.rb similarity index 100% rename from lib/openapi_parser/schema_validators/base.rb rename to lib/openapi_parser/schema_validator/base.rb diff --git a/lib/openapi_parser/schema_validators/boolean_validator.rb b/lib/openapi_parser/schema_validator/boolean_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/boolean_validator.rb rename to lib/openapi_parser/schema_validator/boolean_validator.rb diff --git a/lib/openapi_parser/schema_validators/enumable.rb b/lib/openapi_parser/schema_validator/enumable.rb similarity index 100% rename from lib/openapi_parser/schema_validators/enumable.rb rename to lib/openapi_parser/schema_validator/enumable.rb diff --git a/lib/openapi_parser/schema_validators/float_validator.rb b/lib/openapi_parser/schema_validator/float_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/float_validator.rb rename to lib/openapi_parser/schema_validator/float_validator.rb diff --git a/lib/openapi_parser/schema_validators/integer_validator.rb b/lib/openapi_parser/schema_validator/integer_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/integer_validator.rb rename to lib/openapi_parser/schema_validator/integer_validator.rb diff --git a/lib/openapi_parser/schema_validators/minimum_maximum.rb b/lib/openapi_parser/schema_validator/minimum_maximum.rb similarity index 100% rename from lib/openapi_parser/schema_validators/minimum_maximum.rb rename to lib/openapi_parser/schema_validator/minimum_maximum.rb diff --git a/lib/openapi_parser/schema_validators/nil_validator.rb b/lib/openapi_parser/schema_validator/nil_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/nil_validator.rb rename to lib/openapi_parser/schema_validator/nil_validator.rb diff --git a/lib/openapi_parser/schema_validators/object_validator.rb b/lib/openapi_parser/schema_validator/object_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/object_validator.rb rename to lib/openapi_parser/schema_validator/object_validator.rb diff --git a/lib/openapi_parser/schema_validators/one_of_validator.rb b/lib/openapi_parser/schema_validator/one_of_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/one_of_validator.rb rename to lib/openapi_parser/schema_validator/one_of_validator.rb diff --git a/lib/openapi_parser/schema_validators/options.rb b/lib/openapi_parser/schema_validator/options.rb similarity index 100% rename from lib/openapi_parser/schema_validators/options.rb rename to lib/openapi_parser/schema_validator/options.rb diff --git a/lib/openapi_parser/schema_validators/string_validator.rb b/lib/openapi_parser/schema_validator/string_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/string_validator.rb rename to lib/openapi_parser/schema_validator/string_validator.rb diff --git a/lib/openapi_parser/schema_validators/unspecified_type_validator.rb b/lib/openapi_parser/schema_validator/unspecified_type_validator.rb similarity index 100% rename from lib/openapi_parser/schema_validators/unspecified_type_validator.rb rename to lib/openapi_parser/schema_validator/unspecified_type_validator.rb