Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openmindlab/sfcc-schemas
Salesforce Commerce Cloud import and export schemas validator
https://github.com/openmindlab/sfcc-schemas
salesforce-commerce-cloud sfcc-schemas xml-files
Last synced: 9 days ago
JSON representation
Salesforce Commerce Cloud import and export schemas validator
- Host: GitHub
- URL: https://github.com/openmindlab/sfcc-schemas
- Owner: openmindlab
- Created: 2019-07-30T08:01:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T04:29:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T00:32:24.746Z (3 months ago)
- Topics: salesforce-commerce-cloud, sfcc-schemas, xml-files
- Language: HTML
- Size: 667 KB
- Stars: 14
- Watchers: 5
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-sfcc - openmindlab/sfcc-schemas - Salesforce Commerce Cloud import and export schemas validator. (Open Source / Other)
- awesome-sfcc - openmindlab/sfcc-schemas - Salesforce Commerce Cloud import and export schemas validator. (Open Source / Other)
README
# sfcc-schemas
> Salesforce Commerce Cloud import and export schemas validator
## Features
* validate salesforce commerce cloud import/export xml files
* automatically add local xsd declarations to xml files for leveraging IDE autocomplete and validation## Installation
```bash
$ npm i -g sfcc-schemas
```
Warning: the module makes use of [xsd-schema-validator](https://www.npmjs.com/package/xsd-schema-validator) which requires java.See the prerequisites section on https://www.npmjs.com/package/xsd-schema-validator for details.
## Requirements
* Node >= 10## Usage
```bash
sfcc-schemas-validate
```
Validates all the xml files in the `sites` subdirectory (following the usual cartridge folder conventions)```bash
sfcc-schemas-xsdify
```
Adds a schemaLocation attribute to all the xml files, in order to leverage editor support (validation or autocompletion) ini your IDE.For this purpose the module must be installed locally in your project (`npm i sfcc-schemas`) so that xsds can be linked directly from the node_modules folder, e.g.
```xml
...
```## License
Released under the MIT license.