_guardAgainstInvalidSchema () {
    if (!this.schema.validate(this.resource)) {
      throw Exception.invalidResource(this, this.schema.errors)
    }
  }
/**
   * Guard against an invalid json schema
   * @private
   */
Guard against an invalid json schema
@private
Guard against an invalid json schema @private
_guardAgainstInvalidSchema () {
    if (!this.schema.validate(this.resource)) {
      throw Exception.invalidResource(this, this.schema.errors)
    }
  }
_guardAgainstInvalidSchema ( ) { if ( ! this . schema . validate ( this . resource ) ) { throw Exception . invalidResource ( this , this . schema . errors ) } }
Guard against an invalid json schema
 @private
Guard against an invalid json schema @private