Код: Выделить всё
MyType:
type: string
enum:
- foo
- baz
Код: Выделить всё
"/v1/configuration/{configType}":
get:
operationId: GetConf
parameters:
- name: configType
in: path
required: true
schema:
$ref: "#/components/schemas/MyType"
Код: Выделить всё
public enum ConfigTypePathParamEnum {
FOO("foo"),
BAZ("baz")
Этот вопрос похож, но не совсем тот же:
Строковый параметр без учета регистра в схеме openApi< /p>
Я использую генератор openapi версии 5.2.0.
Подробнее здесь: https://stackoverflow.com/questions/684 ... upper-case