Class: OpencJsonSchemaFormats::URIValidator
- Inherits:
-
Object
- Object
- OpencJsonSchemaFormats::URIValidator
- Defined in:
- lib/openc_json_schema_formats.rb
Instance Method Summary collapse
-
#validate(record) ⇒ Object
Actually, this only checks http and https formats, so isn’t really for URIs.
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 |