Module: Openc::JsonSchema

Extended by:
JsonSchema
Included in:
JsonSchema
Defined in:
lib/openc/json_schema.rb,
lib/openc/json_schema/utils.rb,
lib/openc/json_schema/version.rb,
lib/openc/json_schema/validator.rb,
lib/openc/json_schema/date_converter.rb

Defined Under Namespace

Modules: DateConverter, Utils, Validator

Constant Summary collapse

VERSION =
'0.0.14'

Instance Method Summary collapse

Instance Method Details

#convert_dates(schema_path, record) ⇒ Object



18
19
20
# File 'lib/openc/json_schema.rb', line 18

def convert_dates(schema_path, record)
  DateConverter.convert_dates(schema_path, record)
end

#validate(schema_path, record) ⇒ Object



14
15
16
# File 'lib/openc/json_schema.rb', line 14

def validate(schema_path, record)
  Validator.validate(schema_path, record)
end