Skip to content

Commit

Permalink
Re-add table format for mapping output example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanrick authored and chesterbot01 committed Jun 12, 2024
1 parent 3b380b1 commit 7e22915
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ If you want to add a new distribution format, you'll need to do 3 things:
This is a rails app after all, so we'll give a map of the _novel_ pieces of our system:

```
<<<<<<< HEAD
├── Makefile # key dev and build commands
├── app/ # rails standard
├── bin/
Expand Down
16 changes: 13 additions & 3 deletions data/integrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,16 @@ output

---

**Final Mapping (JSON)**
**Final Mapping**

| Input (generated) | Output | Notes
|--------|--------|--------|
| product_category_id: "aa-6-9", attributes: ["target_gender": "target_gender__male", "age_group": "age_group__adults"] | amazon_category: [3888171, 9539904011] | Matches rules 1 & 2 |
| product_category_id: "aa-6-9", attributes: ["target_gender": "target_gender__female", "age_group": "age_group__adults"] | amazon_category: [9539894011, 9539902011, 9539895011, 9539896011]| Matches rules 1 & 3 |
| ... | ... ||

<details>
<summary>Output as JSON</summary>

```json
[
Expand All @@ -144,7 +153,7 @@ output
"output": {
"amazon_category": [3888171, 9539904011]
}
}, // Matches rules 1 and 2
},
{
"input": {
"product_category_id": "aa-6-9",
Expand All @@ -162,7 +171,8 @@ output
"output": {
"amazon_category": [9539894011, 9539902011, 9539895011, 9539896011]
}
} // Matches rules 1 and 3
}
]

```
</details>

0 comments on commit 7e22915

Please sign in to comment.