Class: Field::Types::File

Inherits:
Base
  • Object
show all
Defined in:
lib/field/types/file.rb

Direct Known Subclasses

Image, Pdf, Video

Instance Attribute Summary

Attributes inherited from Base

#name, #translated, #type

Instance Method Summary collapse

Methods inherited from Base

fetch, supported_types

Instance Method Details

#json_schema_formatObject



8
9
10
# File 'lib/field/types/file.rb', line 8

def json_schema_format
  :uri
end

#json_schema_patternObject



16
17
18
# File 'lib/field/types/file.rb', line 16

def json_schema_pattern
  '^(https?)://'
end

#json_schema_typeObject



12
13
14
# File 'lib/field/types/file.rb', line 12

def json_schema_type
  :string
end

#swagger_typeObject



4
5
6
# File 'lib/field/types/file.rb', line 4

def swagger_type
  :File
end