Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Updated validation based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jozsefdamokos committed Jul 4, 2024
1 parent e26504f commit 394c303
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 181 deletions.
8 changes: 0 additions & 8 deletions profiles/product_with_manufacturer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,24 @@ sort:
mappings:
- file_column: "id"
entity_path: "id"
field_type: "uuid"
- file_column: "product number"
entity_path: "productNumber"
field_type: "string"
- file_column: "default name"
entity_path: "name"
field_type: "string"
- file_column: "default price net"
key: "default_price_net"
- file_column: "default price gross"
key: "default_price_gross"
- file_column: "stock"
entity_path: "stock"
field_type: "integer"
- file_column: "tax id"
entity_path: "taxId"
field_type: "uuid"
- file_column: "manufacturer id"
entity_path: "manufacturer?.id"
field_type: "uuid"
- file_column: "manufacturer name"
entity_path: "manufacturer?.name"
field_type: "string"
- file_column: "manufacturer website"
entity_path: "manufacturer?.link"
field_type: "string"

serialize_script: |
let default_currency = get_default("CURRENCY");
Expand Down
1 change: 0 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ impl Mapping {
pub struct EntityPathMapping {
pub file_column: String,
pub entity_path: String,
pub field_type: String,
}

#[derive(Debug, Clone, Deserialize)]
Expand Down
Loading

0 comments on commit 394c303

Please sign in to comment.