From babd2cece7e0db0182fa2cbd188458627404c8b7 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Fri, 12 Jan 2024 10:33:06 -0500 Subject: [PATCH] Fixes require for generated reference examples. Update example.md.twig --- templates/ruby/docs/example.md.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/ruby/docs/example.md.twig b/templates/ruby/docs/example.md.twig index ed2ef5313..4ffd481c2 100644 --- a/templates/ruby/docs/example.md.twig +++ b/templates/ruby/docs/example.md.twig @@ -1,4 +1,4 @@ -require '{{ spec.title }}' +require '{{ spec.title | lower }}' include {{ spec.title | caseUcfirst }} @@ -14,4 +14,4 @@ client = Client.new response = {{ service.name | caseSnake }}.{{ method.name | caseSnake }}({% for parameter in method.parameters.all %}{% if parameter.required %}{% if not loop.first %}, {% endif %}{{parameter.name|caseSnake}}: {% if parameter.type == 'file' %}{{ parameter | paramExample }}{% else %}{{ parameter | paramExample }}{% endif %}{% endif %}{% endfor %}) -puts response.inspect \ No newline at end of file +puts response.inspect