Permalink
Browse files

Use lowercase species for deserialising species data

  • Loading branch information...
CarrotCodes committed Sep 23, 2018
1 parent 07d3189 commit 2174567c3bbe90e49f3c749d6a991f41704bf23c
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/kotlin/animals/adopt/website/page/model/AnimalServiceModels.kt
@@ -87,8 +87,8 @@ object AnimalServiceModels {
override val species: String,
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXTERNAL_PROPERTY, property="species", visible = true)
@JsonSubTypes(value = [
(JsonSubTypes.Type(value = CatData::class, name = "CAT")),
(JsonSubTypes.Type(value = DogData::class, name = "DOG"))
(JsonSubTypes.Type(value = CatData::class, name = "cat")),
(JsonSubTypes.Type(value = DogData::class, name = "dog"))
])
override val species_data: ISpeciesData,
override val shelter: String
@@ -108,8 +108,8 @@ object AnimalServiceModels {
override val species: String,
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXTERNAL_PROPERTY, property="species", visible = true)
@JsonSubTypes(value = [
(JsonSubTypes.Type(value = CatData::class, name = "CAT")),
(JsonSubTypes.Type(value = DogData::class, name = "DOG"))
(JsonSubTypes.Type(value = CatData::class, name = "cat")),
(JsonSubTypes.Type(value = DogData::class, name = "dog"))
])
override val species_data: ISpeciesData,
override val media: Map<Int, MediaItem>,

0 comments on commit 2174567

Please sign in to comment.