Sha256: d5ba9b92a150d1ed0135cc4d5ff736218fb39592d1102e87a06af7554f03ced2
Contents?: true
Size: 321 Bytes
Versions: 15
Compression:
Stored size: 321 Bytes
Contents
# frozen_string_literal: true module Openapi3Parser module Validators class AbsoluteUri def self.call(input) uri = URI.parse(input) %("#{input}" is not a absolute URI) unless uri.absolute? rescue URI::InvalidURIError %("#{input}" is not a valid URI) end end end end
Version data entries
15 entries across 15 versions & 2 rubygems