Apipie: using variable as type description


#1

Hello guys,

I’m still “green” in the ruby department and definitely when it comes to apipie…
However, I have a PR which involves a small change regarding an additional parameter:

param :keyboard, Foreman::Model::ComputeResource::ALLOWED_KEYBOARD_LAYOUTS, :desc => N_('for oVirt only')

Now, the beef is in “Foreman::Model::ComputeResource::ALLOWED_KEYBOARD_LAYOUTS”, in a previous iteration, this was simply %w(en-us de …) and all was good. However, since using the constant, a lot of tests concerning the compute resource start to fail…

I’m unsure how I can debug this or what the correct syntax would actually be if I’d like to make that work? Or is it simply impossible?

Kind regards,
Arend