Neurologically Paralyzing Mouseovers
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sfcc-schemas

1.4.8 • Public • Published

sfcc-schemas

Salesforce Commerce Cloud import and export schemas validator


openmind

Features

  • validate salesforce commerce cloud import/export xml files
  • automatically add local xsd declarations to xml files for leveraging IDE autocomplete and validation

Installation

$ npm i -g sfcc-schemas

Warning: the module makes use of 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

sfcc-schemas-validate

Validates all the xml files in the sites subdirectory (following the usual cartridge folder conventions)

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.

<preferences xmlns="http://www.demandware.com/xml/impex/preferences/2007-03-31" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.demandware.com/xml/impex/preferences/2007-03-31 ../../../../node_modules/sfcc-schemas/xsd/preferences.xsd">
    ...

License

Copyright (c) 2019 openmind

Released under the MIT license.

Install

npm i sfcc-schemas

DownloadsWeekly Downloads

38

Version

1.4.8

License

MIT

Unpacked Size

704 kB

Total Files

79

Last publish

Collaborators

  • avatar