-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[java client, gson] Expose @SerializedName value as constant #21
Labels
Comments
jmini
added a commit
to jmini/openapi-generator
that referenced
this issue
May 13, 2018
wing328
pushed a commit
that referenced
this issue
May 13, 2018
* Java gson: add @SerializedName value as constant Fix #21 * Run bin/java-petstore-all.sh
With #42, the constant will be more what a java developper would expect:
|
vvb
pushed a commit
to vvb/openapi-generator
that referenced
this issue
Jun 1, 2020
…roperties_jblack Adds *args input to __init__ method to fix test testFruitNullValue
aserkes
added a commit
to aserkes/openapi-generator
that referenced
this issue
May 30, 2022
* generator for Helidon SE server * resolve merge conflicts
nilskuhn
pushed a commit
to nilskuhn/openapi-generator
that referenced
this issue
Apr 6, 2023
…ckage-mode Test package mode in Travis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes when you are writing tests for an API (with Rest-Assured in my case) you can not use the fluent API to build request, because you want to create an alternative request (malformed, corner case...)
You can use rest-assured RequestSpecBuilder for that. You then write code like this:
I would be great instead of hard-coding the json member like this, to be able to reference constants:
This way, when the API evolves, the Java compiler indicates that something needs to be changed in the test case (the same way that the fluent api is also changed).
The text was updated successfully, but these errors were encountered: