Skip to content

Commit

Permalink
feat(api): use Schema(name insteadof @get:JsonProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
rainer-exxcellent committed May 23, 2023
1 parent 2c395a1 commit 3949448
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package org.eclipse.tractusx.bpdm.common.dto.response

import com.fasterxml.jackson.annotation.JsonProperty
import io.swagger.v3.oas.annotations.media.ArraySchema
import io.swagger.v3.oas.annotations.media.Schema
import java.time.Instant
Expand Down Expand Up @@ -52,15 +51,13 @@ data class LogisticAddressResponse(
@get:Schema(description = "BPN of the related legal entity, if available")
val bpnLegalEntity: String?,

@get:Schema(description = "Flag if this is the legal address of its related legal entity")
@get:JsonProperty("isLegalAddress")
@get:Schema(name = "isLegalAddress", description = "Flag if this is the legal address of its related legal entity")
val isLegalAddress: Boolean = false,

@get:Schema(description = "BPN of the related site, if available")
val bpnSite: String?,

@get:Schema(description = "Flag if this is the main address of its related site")
@get:JsonProperty("isMainAddress")
@get:Schema(name = "isMainAddress", description = "Flag if this is the main address of its related site")
val isMainAddress: Boolean = false,

@get:Schema(description = "The timestamp the business partner data was created")
Expand Down

0 comments on commit 3949448

Please sign in to comment.