New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sfcc-schemas

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sfcc-schemas

Salesforce Commerce Cloud import and export schemas validator

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

$ 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

Released under the MIT license.

Keywords

FAQs

Package last updated on 23 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc