Module: Schemurai::Internal::Formats
- Defined in:
- lib/schemurai/formats.rb
Class Method Summary collapse
Class Method Details
.resolve(format) ⇒ Object
380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# File 'lib/schemurai/formats.rb', line 380 def resolve(format) case format when "date" then DATE when "time" then TIME when "date-time" then DATE_TIME when "duration" then DURATION when "ipv4" then IPV4 when "ipv6" then IPV6 when "json-pointer" then JSON_POINTER when "relative-json-pointer" then RELATIVE_JSON_POINTER when "uuid" then UUID else UNKNOWN end end |