class Attributor::Object
Public Class Methods
as_json_schema(**kwargs)
click to toggle source
Represents Object
as an OpenAPI Any Type
.
@see swagger.io/docs/specification/data-models/data-types/#any
Calls superclass method
# File lib/attributor/types/object.rb, line 26 def self.as_json_schema(**kwargs) schema = super(**kwargs) schema.delete(:type) schema end
example(_context = nil, options: {})
click to toggle source
# File lib/attributor/types/object.rb, line 13 def self.example(_context = nil, options: {}) 'An Object' end
json_schema_type()
click to toggle source
Not really used (we override as_json_schema
to represent this as an Any Type
), but if it were used, this would be accurate.
# File lib/attributor/types/object.rb, line 19 def self.json_schema_type :object end
native_type()
click to toggle source
# File lib/attributor/types/object.rb, line 9 def self.native_type ::BasicObject end