Skip to content

Commit

Permalink
airbyte-to-flow: remove format: base64 from schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Oct 18, 2023
1 parent eed4fdd commit 00e48d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion airbyte-to-flow/src/interceptors/fix_document_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ pub fn fix_nonstandard_jsonschema_attributes(schema: &mut serde_json::Value) {
if f == "int32" || f == "int64" {
// Insert updates values
map.insert("format".to_string(), json!("integer"));
} else if f == "base64" {
// a non-standard format output by salesforce connector
map.remove("format");
}
}
},
Expand Down Expand Up @@ -540,7 +543,8 @@ mod test {
},
"id": {
"type": ["string", "null"],
"group": "test"
"group": "test",
"format": "base64"
}
}
}
Expand Down

0 comments on commit 00e48d2

Please sign in to comment.