serialization/json/builders/SchemaBuilder.js
/**
		 * Adds a new {@link Component} to the schema and returns the current instance.
		 *
		 * @public
		 * @param {Component} component - The new component to add.
		 * @returns {SchemaBuilder}
		 */
Adds a new  Component to the schema and returns the current instance.
@public
@param {Component} component - The new component to add.
Adds a new Component to the schema and returns the current instance . @public @param { Component } component - The new component to add .
withComponent(component) {
			assert.argumentIsRequired(component, 'component', Component, 'Component');
			const components = this._schema.components.concat([ component ]);
			this._schema = new Schema(this._schema.name, this._schema.fields, components, this._schema.strict);
			return this;
		}
withComponent ( component ) { assert . argumentIsRequired ( component , 'component' , Component , 'Component' ) ; const components = this . _schema . components . concat ( [ component ] ) ; this . _schema = new Schema ( this . _schema . name , this . _schema . fields , components , this . _schema . strict ) ; return this ; }
Adds a new {@link Component} to the schema and returns the current instance.
Adds a new { @link Component } to the schema and returns the current instance .