Skip to content
Sign in

Baseline validation rules for electrical products

License:CC-BY-4.0Community · communityUpdated · latest release 1.0
  • Validated
  • Community maintained
About access and trust
Open
Immediately usable under the displayed license. Access is separate from the license.
License
CC-BY-4.0 governs use, including for open repositories.
You
No entitlement needed: the content is open.
Validated
Required rulepack checks passed for the named revision.
Community maintained
Maintained by contributors, not the named product authority.
Latest on main — may changePin this view to commit 45b1d8979f29
Follow0 Use repository

Rules

6 rules at 1.0 sha256:45b1d8979f29… full digest sha256:45b1d8979f298670bfb64a79fd6bb6c2c6774dfc1a780076bada5ef4a54f28a7

Validate a sample

Run inside your product repository. The rules are pinned to commit sha256:45b1d8979f29… full digest sha256:45b1d8979f298670bfb64a79fd6bb6c2c6774dfc1a780076bada5ef4a54f28a7, so the result does not change when this rulepack publishes a new release.

product get community/electrical-baseline --revision sha256:45b1d8979f298670bfb64a79fd6bb6c2c6774dfc1a780076bada5ef4a54f28a7 --into community-electrical-baseline-rules
product validate --rules community-electrical-baseline-rules
Rules of community/electrical-baseline
RuleSeverityChecksMessage
electrical.brand-requirederrorrequired on product brandEvery product needs a brand
electrical.etim-class-requiredwarningrequired on attribute class:etimProducts should carry an ETIM class
electrical.name-requirederrorrequired on product nameEvery product needs a name
electrical.voltage-in-voltswarningunit on attribute rated_voltage (V)Rated voltage is stated in volts
electrical.voltage-numericerrornumeric on attribute rated_voltageRated voltage must be a number
electrical.weight-in-kgwarningunit on attribute weight (kg)Weight is stated in kilograms