You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
Is this a bug?
The text was updated successfully, but these errors were encountered:
joyceli214
changed the title
Unable to deserialize OpenAPI Parameter
BUG Unable to deserialize OpenAPI Parameter
Jun 5, 2024
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?
The text was updated successfully, but these errors were encountered: