Skip to content

Commit

Permalink
Merge pull request #100 from macisamuele/maci-regenerate-samples
Browse files Browse the repository at this point in the history
Regenerate samples
  • Loading branch information
cortinico committed Feb 5, 2020
2 parents d0aab68 + 9b914ba commit 7ae0186
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16 deletions.
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.

0 comments on commit 7ae0186

Please sign in to comment.