Baseline validation rules for electrical products
License:CC-BY-4.0Community · communityUpdated · latest release 1.0
product://community/electrical-baseline- 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.
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| Rule | Severity | Checks | Message |
|---|---|---|---|
| electrical.brand-required | error | required on product brand | Every product needs a brand |
| electrical.etim-class-required | warning | required on attribute class:etim | Products should carry an ETIM class |
| electrical.name-required | error | required on product name | Every product needs a name |
| electrical.voltage-in-volts | warning | unit on attribute rated_voltage (V) | Rated voltage is stated in volts |
| electrical.voltage-numeric | error | numeric on attribute rated_voltage | Rated voltage must be a number |
| electrical.weight-in-kg | warning | unit on attribute weight (kg) | Weight is stated in kilograms |