lib/dry/swagger.rb in dry-swagger-0.3.0 vs lib/dry/swagger.rb in dry-swagger-0.4.0
- old
+ new
@@ -1,24 +1,14 @@
require "dry/swagger/version"
require "dry/swagger/contract_parser"
require "dry/swagger/struct_parser"
-require 'helpers/configuration'
+require 'dry/swagger/documentation_generator'
+require 'dry/swagger/errors/missing_hash_schema_error'
+require 'dry/swagger/errors/missing_type_error'
+require 'dry/swagger/config/configuration'
+require 'dry/swagger/config/contract_configuration'
+require 'dry/swagger/config/struct_configuration'
module Dry
module Swagger
- class Error < StandardError; end
-
- extend Configuration
-
- define_setting :struct_enable_required_validation, true
- define_setting :struct_enable_nullable_validation, true
- define_setting :struct_enable_enums, true
- define_setting :struct_enable_descriptions, true
-
- define_setting :contract_enable_required_validation, true
- define_setting :contract_enable_nullable_validation, true
- define_setting :contract_enable_enums, true
- define_setting :contract_enable_descriptions, true
-
- define_setting :nullable_type, :"x-nullable"
end
end