Class: Jdoc::Link::RequestGenerator
- Inherits:
-
Object
- Object
- Jdoc::Link::RequestGenerator
- Defined in:
- lib/jdoc/link.rb
Class Method Summary collapse
-
.call(properties) ⇒ Hash
Generates example request body from given schema.
Class Method Details
.call(properties) ⇒ Hash
Note:
Not includes properties that have readOnly property
Generates example request body from given schema
262 263 264 |
# File 'lib/jdoc/link.rb', line 262 def self.call(properties) ResponseGenerator.call(properties.reject {|key, value| value.data["readOnly"] }) end |