I was trying to convert json string to OpenAPI object and met below error:
Cannot deserialize value of type io.swagger.v3.oas.models.parameters.Parameter$StyleEnum from String "form": not one of the values accepted for Enum class: [MATRIX, SIMPLE, SPACEDELIMITED, FORM, DEEPOBJECT, LABEL, PIPEDELIMITED]
Then I tried to run below code (captured from ParameterDeSerializationTest.java) and also failed (threw same error).
final String json = "{\"in\":\"query\",\"style\":\"form\",\"required\":false,\"schema\":{\"type\":\"string\"}}";final Parameter p = m.readValue(json, Parameter.class);
I was trying to convert json string to OpenAPI object and met below error:
Then I tried to run below code (captured from ParameterDeSerializationTest.java) and also failed (threw same error).
final String json = "{\"in\":\"query\",\"style\":\"form\",\"required\":false,\"schema\":{\"type\":\"string\"}}";
final Parameter p = m.readValue(json, Parameter.class);
Is this a bug?