Skip to main content

RuleViolation_Preview

**Experimental** Represents a violation detected during a rule check execution.

type RuleViolation_Preview {
boundingRectangle: DesignDataRectangle_Preview
documentId: String
errorReportLevel: RuleViolationErrorReportLevel_Preview!
errorText: String!
location: DesignDataLocation_Preview
relatedObjects: [RuleViolationRelatedObject_Preview!]!
ruleDescription: String
ruleFailureCode: RuleFailureCode_Preview
ruleName: String!
ruleType: RuleCheckType_Preview!
}

Fields

RuleViolation_Preview.boundingRectangle ● DesignDataRectangle_Preview object

**Experimental** The bounding rectangle of the violation in the design.

RuleViolation_Preview.documentId ● String scalar

**Experimental** The identifier of the document where the violation occurred.

RuleViolation_Preview.errorReportLevel ● RuleViolationErrorReportLevel_Preview! non-null enum

**Experimental** The error level of this violation.

RuleViolation_Preview.errorText ● String! non-null scalar

**Experimental** The error text describing the violation.

RuleViolation_Preview.location ● DesignDataLocation_Preview object

**Experimental** The location of the violation in the design.

RuleViolation_Preview.relatedObjects ● [RuleViolationRelatedObject_Preview!]! non-null object

**Experimental** The design objects related to this violation.

RuleViolation_Preview.ruleDescription ● String scalar

**Experimental** The description of the rule that was violated.

RuleViolation_Preview.ruleFailureCode ● RuleFailureCode_Preview enum

**Experimental** The failure code if the rule check itself failed, rather than detecting a violation.

RuleViolation_Preview.ruleName ● String! non-null scalar

**Experimental** The name of the rule that was violated.

RuleViolation_Preview.ruleType ● RuleCheckType_Preview! non-null enum

**Experimental** The type of the rule that was violated.