Class: OpencJsonSchemaFormats::URIValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/openc_json_schema_formats.rb

Instance Method Summary collapse

Instance Method Details

#validate(record) ⇒ Object

Actually, this only checks http and https formats, so isn’t really for URIs



35
36
37
# File 'lib/openc_json_schema_formats.rb', line 35

def validate(record)
  record =~ URI_REGEX
end