Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@salesforce/schemas
Advanced tools
This repository contains the spec and schema for the Scratch Org Definition Configuration file and `sfdx-project.json` file.
JSON Schemas help with validation and code completion of json files. Below are the schemas that are available in this repository.
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/main/sfdx-project.schema.json"
//...
}
You can also use these schemas programatically. 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']);
Run the features-update
and settings-update
scripts on every major release and open a PR with the new changes against the main
branch to keep the schema files up to date
the /src folder contains the TS type used to generate the replacements
project property.
You can define (or import and re-export) TS types and then use this extension. It adds a "Generate JSON Schema from type" action to your palette.
The results go into /compiled
, which can be used to copy-paste into the project.
To report issues or feedback with the schemas, open a bug on GitHub.
FAQs
This repository contains the spec and schema for the Scratch Org Definition Configuration file and `sfdx-project.json` file.
The npm package @salesforce/schemas receives a total of 232,823 weekly downloads. As such, @salesforce/schemas popularity was classified as popular.
We found that @salesforce/schemas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 48 open source maintainers collaborating on the project.
Did you know?
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.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.