Class: Field::Types::File
- Inherits:
-
Base
- Object
- Base
- Field::Types::File
show all
- Defined in:
- lib/field/types/file.rb
Instance Attribute Summary
Attributes inherited from Base
#name, #translated, #type
Instance Method Summary
collapse
Methods inherited from Base
fetch, supported_types
Instance Method Details
8
9
10
|
# File 'lib/field/types/file.rb', line 8
def json_schema_format
:uri
end
|
#json_schema_pattern ⇒ Object
16
17
18
|
# File 'lib/field/types/file.rb', line 16
def json_schema_pattern
'^(https?)://'
end
|
#json_schema_type ⇒ Object
12
13
14
|
# File 'lib/field/types/file.rb', line 12
def json_schema_type
:string
end
|
#swagger_type ⇒ Object
4
5
6
|
# File 'lib/field/types/file.rb', line 4
def swagger_type
:File
end
|