Removed some deprecation warnings

This commit is contained in:
domaindrivendev
2017-05-19 11:11:13 -07:00
parent 75d676d753
commit 353be669e4
10 changed files with 16 additions and 75 deletions

View File

@@ -2,11 +2,10 @@ require 'json-schema'
module Rswag
module Specs
class ExtendedSchema < JSON::Schema::Validator
class ExtendedSchema < JSON::Schema::Draft4
def initialize
super
extend_schema_definition("http://json-schema.org/draft-04/schema#")
@attributes['type'] = ExtendedTypeAttribute
@uri = URI.parse('http://tempuri.org/rswag/specs/extended_schema')
end