jamesnetherton commented on code in PR #12269:
URL: https://github.com/apache/camel/pull/12269#discussion_r1410383005
##########
components/camel-openapi-java/src/test/java/org/apache/camel/openapi/RestOpenApiReaderTest.java:
##########
@@ -170,6 +251,14 @@ public void testReaderRead() throws Exception {
assertTrue(json.contains("\"success\" : \"123\""));
assertTrue(json.contains("\"error\" : \"-1\""));
assertTrue(json.contains("\"type\" : \"array\""));
+ assertTrue(json.contains("\"enum\" : [ \"A\", \"B\", \"C\" ]"));
+ assertTrue(json.contains("\"enum\" : [ 1, 2, 3 ]"));
+ assertTrue(json.contains("\"enum\" : [ 1.0, 2.0, 3.0 ]"));
+ assertTrue(json.contains("\"enum\" : [ \"true\", \"false\" ]"));
Review Comment:
I guess it's not a regression as such, right? The `else` clause for the type
check would have been doing fallback to `StringSchema` in past releases anyway.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]