Open nadiramra opened 4 years ago
This appears to be a mismatch between how mpOpenApi-1.x
and jsonb-1.0
extract property names from getters. openapi-3.1
depends on mpOpenApi-1.0
, so it has the same problem.
jsonb-1.0
translates getchar_()
as a getter for a property char_
whereas mpOpenApi-1.x
translates it as a property getchar_
.
In mpOpenApi-1.x
and openapi-3.1
, you can work around this by changing the method name to getChar_()
In mpOpenApi-2.0
, this problem is not present so moving up to mpOpenApi-2.0
is also an option.
Do either of these solutions work for you?
going to mpOpenApi-2.0 is an option.
When using openapi-3.1, there is a resource method that is defined as follows:
where the class Fields is defined as:
The sample payload the OpenAPI explorer produces for JSON is:
which is not valid. The expected sample request should have been:
If you change media type to XML, the correct fields identifiers are used:
It should be noted that apiDiscovery-1.0 handles the situation correctly. Currently running IBM Liberty 20.0.0.5 with JRE 8.