MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / _validateThemeSchema

Method _validateThemeSchema

lib/bundle-validator.js:128–134  ·  view source on GitHub ↗

* If theme schema exists we need to validate it to make sure it passes all defined checks. * @private * @returns {boolean}

()

Source from the content-addressed store, hash-verified

126 * @returns {boolean}
127 */
128 async _validateThemeSchema() {
129 if (this.themeConfig.schemaExists()) {
130 const rawSchema = await this.themeConfig.getRawSchema();
131 this._validateJsonSchema('schema', themeValidationSchema, rawSchema);
132 }
133 return true;
134 }
135
136 /**
137 * Ensure theme configuration exists and passes the json schema file

Callers

nothing calls this directly

Calls 3

_validateJsonSchemaMethod · 0.95
schemaExistsMethod · 0.80
getRawSchemaMethod · 0.80

Tested by

no test coverage detected