Method: JSONSchemer::Configuration#initialize

Defined in:
lib/json_schemer/configuration.rb

#initialize(base_uri: URI('json-schemer://schema'), meta_schema: Draft202012::BASE_URI.to_s, vocabulary: nil, format: true, formats: {}, content_encodings: {}, content_media_types: {}, keywords: {}, before_property_validation: [], after_property_validation: [], insert_property_defaults: false, property_default_resolver: nil, ref_resolver: proc { |uri| raise UnknownRef, uri.to_s }, regexp_resolver: 'ruby', output_format: 'classic', resolve_enumerators: false, access_mode: nil) ⇒ Configuration

Returns a new instance of Configuration.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/json_schemer/configuration.rb', line 10

def initialize(
  base_uri: URI('json-schemer://schema'),
  meta_schema: Draft202012::BASE_URI.to_s,
  vocabulary: nil,
  format: true,
  formats: {},
  content_encodings: {},
  content_media_types: {},
  keywords: {},
  before_property_validation: [],
  after_property_validation: [],
  insert_property_defaults: false,
  property_default_resolver: nil,
  ref_resolver: proc { |uri| raise UnknownRef, uri.to_s },
  regexp_resolver: 'ruby',
  output_format: 'classic',
  resolve_enumerators: false,
  access_mode: nil
)
  super
end