ServerVariable: fix the general case when no enum is defined


According to the spec [0], server variables may have an enum field
which defines the allowed set of the values.
This part was implemented correctly.

However, if the enum field is not present, any value should be
accepted. This part was wrong, because the code simply used a
default value as a single element of the set. As a result, no
other values could be specified.

This patch fixes the logic and adds a test that covers this case.

[0]: https://spec.openapis.org/oas/v3.1.0.html#server-variable-object

Task-number: QTBUG-141948
Change-Id: Ib4366e07a769f27ce615eecd3a2d86b4e33fd42c
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commitc994bb118b13e1478a4ac4866336180db92cc497
parentba2d1b4be76b49ea7e2861180cb3d3e7f1affeb5
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 26 Nov 2025 18:27:31 +0100