Module: Rach::ResponseFormat::ClassMethods
- Defined in:
- lib/rach/response_format.rb
Instance Method Summary collapse
Instance Method Details
#render(schema_name) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rach/response_format.rb', line 10 def render(schema_name) base_schema = new.public_send(schema_name) schema = prepare_schema_for_api(base_schema) { type: "json_schema", json_schema: { name: schema_name.to_s, schema:, strict: true }, } end |