@salesforce/schemas
This repository contains the spec and schema for the Scratch Org Definition Configuration file and `sfdx-project.json` file.
Last updated 3 months ago by jgrantham .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @salesforce/schemas 
SYNC missed versions from official npm registry.

Salesforce DX Schemas

JSON Schemas help with validation and code completion of json files. Below are the schemas that are available in this repository.

Using the Schemas

If you are using the Salesforce Extensions for Visual Studio Code these schemas are already included for you.

For most other editors, you can use the schemas by adding the $schema property to the top of your JSON file with the link to the schema document as shown below.

{
  "$schema": "https://raw.githubusercontent.com/forcedotcom/schemas/master/schemas/sfdx-project.schema.json"
  //...
}

You can also use these schemas programatially. For example, Salesforce CLI uses these schema to do certain validation.

const schemas = require('@salesforce/schemas');
const projectJsonSchema = require(schemas['sfdx-project']);
// OR
const projectJsonSchema = require('@salesforce/schema/sfdx-project-schema.json']);

Bugs and Feedback

To report issues or feedback with the schemas, open a bug on GitHub.

Current Tags

  • 1.0.1                                ...           latest (3 months ago)

2 Versions

  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago

Copyright 2014 - 2016 © taobao.org |