Fork me on GitHub
#reitit
<
2022-03-17
>
Nick10:03:47

Hi! I am trying to get elm as a programming language working with reitit-swagger-ui

Nick10:03:28

(ring/routes (swagger-ui/create-swagger-ui-handler {:path "/" :config {:validatorUrl nil :operationsSorter "alpha" :tryItOutEnabled true :requestSnippetsEnabled true :requestSnippets {:generators {:elm {:title "Elm", :syntax "elm"}}}}}) (ring/create-default-handler))

Nick10:03:41

The :requestSnippets line the key

Nick10:03:07

The ':requestSnippetsEnabled true' entry works, but not the snippets. Is there more that needs to be setup?

Nick10:03:40

I mean, get elm snippets to show for each endpoint*

Nick14:03:26

Or, does anyone happen to have any snippet examples with reitit-swagger-ui?