New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENTESB-11495] Mapping variables also on options, not only from the body #6619
Conversation
@Delawen The bot could not transition the ticket automatically, please update this Jira ticket manually: https://issues.jboss.org/browse/ENTESB-11495 |
Added a QuickStart with all the functionality: syndesisio/syndesis-quickstarts#37 |
We have a test failing on CI:
|
" }\n" + | ||
"}"; | ||
|
||
assertEquals(expectedMetadata, actualMetadata); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could use JSONAssert here. Example of the use can be found here:
syndesis/app/common/util/src/test/java/io/syndesis/common/util/openapi/OpenApiHelperTest.java
Lines 50 to 59 in 4b628bc
@Test | |
public void shouldDeserializeSerializeWithoutLoosingEnumValues() throws JSONException { | |
final String document = "{\"swagger\":\"2.0\",\"definitions\":{\"Test\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"integer\",\"enum\":[1,2,3]}}}}}}}}}"; | |
final Swagger parsed = OpenApiHelper.parse(document); | |
final String serialized = OpenApiHelper.serialize(parsed); | |
JSONAssert.assertEquals(document, | |
serialized, JSONCompareMode.STRICT); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Working on the tests. Classic "on my local it worked" case :) due to non-staged changes. |
7ba9e30
to
af5d82b
Compare
@Delawen The bot could not transition the ticket automatically, please update this Jira ticket manually: https://issues.jboss.org/browse/ENTESB-11495 |
Following #6593 now the mapping works fine in all the fields.