Method: Jdoc::Property#read_only

Defined in:
lib/jdoc/property.rb

#read_onlytrue?

Returns True if readOnly property is defined and it’s true.

Returns:

  • (true, nil)

    True if readOnly property is defined and it’s true



48
49
50
# File 'lib/jdoc/property.rb', line 48

def read_only
  true if @schema.read_only == true
end