Skip to content
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

Regenerate samples #100

Merged
merged 1 commit into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,31 @@ interface ModelNameCheckApi {
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: getInlinedModelWithNoNames"
"X-Operation-ID: getInlinedModelWithNoNames"
)
@GET("/model_name/no_x-model_or_title")
fun getInlinedModelWithNoNames(): Single<InlineResponse200>

/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: getInlinedModelWithTitleOnly"
"X-Operation-ID: getInlinedModelWithTitleOnly"
)
@GET("/model_name/title_only")
fun getInlinedModelWithTitleOnly(): Single<ModelWithOnlyTitle>

/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: getInlinedModelWithXModelAndTitle"
"X-Operation-ID: getInlinedModelWithXModelAndTitle"
)
@GET("/model_name/x-model_and_title")
fun getInlinedModelWithXModelAndTitle(): Single<ModelWithXModelAndTitle>

/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: getInlinedModelWithXModelOnly"
"X-Operation-ID: getInlinedModelWithXModelOnly"
)
@GET("/model_name/x-model_only")
fun getInlinedModelWithXModelOnly(): Single<ModelWithOnlyXModel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
*
* @property noXmodelNoTitle
*/
@JsonClass(generateAdapter = true)
data class InlineResponse200(
@Json(name = "no_xmodel_no_title") @field:Json(name = "no_xmodel_no_title") var noXmodelNoTitle: InlineResponse200.NoXmodelNoTitleEnum? = null
) {
/**
*
* Values: VAL1, VAL2
*/
@JsonClass(generateAdapter = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
*
* @property titleOnly
*/
@JsonClass(generateAdapter = true)
data class ModelWithOnlyTitle(
@Json(name = "title_only") @field:Json(name = "title_only") var titleOnly: ModelWithOnlyTitle.TitleOnlyEnum? = null
) {
/**
*
* Values: VAL1, VAL2
*/
@JsonClass(generateAdapter = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
*
* @property xmodelOnly
*/
@JsonClass(generateAdapter = true)
data class ModelWithOnlyXModel(
@Json(name = "xmodel_only") @field:Json(name = "xmodel_only") var xmodelOnly: ModelWithOnlyXModel.XmodelOnlyEnum? = null
) {
/**
*
* Values: VAL1, VAL2
*/
@JsonClass(generateAdapter = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
*
* @property xmodelAndTitle
*/
@JsonClass(generateAdapter = true)
data class ModelWithXModelAndTitle(
@Json(name = "xmodel_and_title") @field:Json(name = "xmodel_and_title") var xmodelAndTitle: ModelWithXModelAndTitle.XmodelAndTitleEnum? = null
) {
/**
*
* Values: VAL1, VAL2
*/
@JsonClass(generateAdapter = false)
Expand Down
2 changes: 1 addition & 1 deletion samples/junit-tests/src/main/java/swagger.json

Large diffs are not rendered by default.