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

fix: update serialization for DestinationDefinitionRead object #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 5 additions & 1 deletion src/models/destination_definition_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DestinationDefinitionRead {
#[serde(rename="custom")]
pub custom: bool,
#[serde(rename = "destinationDefinitionId")]
pub destination_definition_id: uuid::Uuid,
#[serde(rename = "name")]
Expand All @@ -29,7 +31,7 @@ pub struct DestinationDefinitionRead {
pub release_stage: Option<crate::models::ReleaseStage>,
/// The date when this connector was first released, in yyyy-mm-dd format.
#[serde(rename = "releaseDate", skip_serializing_if = "Option::is_none")]
pub release_date: Option<String>,
pub release_date: Option<Vec<u16>>,
#[serde(
rename = "resourceRequirements",
skip_serializing_if = "Option::is_none"
Expand All @@ -44,6 +46,7 @@ pub struct DestinationDefinitionRead {

impl DestinationDefinitionRead {
pub fn new(
custom: bool,
destination_definition_id: uuid::Uuid,
name: String,
docker_repository: String,
Expand All @@ -53,6 +56,7 @@ impl DestinationDefinitionRead {
normalization_config: crate::models::NormalizationDestinationDefinitionConfig,
) -> DestinationDefinitionRead {
DestinationDefinitionRead {
custom,
destination_definition_id,
name,
docker_repository,
Expand Down