An open API service indexing awesome lists of open source software.

https://github.com/codebruinc/schemamap-validate-action

GitHub Action to validate CSV files against SchemaMap templates
https://github.com/codebruinc/schemamap-validate-action

Last synced: 5 days ago
JSON representation

GitHub Action to validate CSV files against SchemaMap templates

Awesome Lists containing this project

README

          

# SchemaMap Validate Action

GitHub Action to validate CSV files against SchemaMap templates for Shopify and Stripe.

## Usage

```yaml
- name: Validate CSV
uses: codebruinc/schemamap-validate-action@v1
with:
schema: shopify-products
mapping: mapping.json
csv: data.csv
```

## Inputs

- `schema` (required): Template key - `shopify-products`, `shopify-inventory`, or `stripe-customers`
- `mapping` (required): Path to mapping.json file
- `csv` (required): Path to input CSV file

## Example Workflow

```yaml
name: Validate Product CSV
on:
pull_request:
paths: ["**/*.csv"]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Validate Shopify Products CSV
uses: codebruinc/schemamap-validate-action@v1
with:
schema: shopify-products
mapping: mappings/shopify-products.json
csv: data/products.csv
```

## About SchemaMap

[SchemaMap](https://schemamap.app) is a privacy-focused CSV mapper for ecommerce platforms. It helps map messy CSV files to proper Shopify and Stripe formats with smart auto-mapping and validation.

- **Browser-only processing** - files never leave your device
- **Smart auto-mapping** - fuzzy header matching
- **Open source** - MIT licensed
- **CLI included** - for automation and CI/CD

## License

MIT - Generated by Zach @ CodeBru.com