Skip to content
sarj/schema/component-fields

Match fields to component kind

Each component kind has exact required and forbidden identity fields.

error

Examples

FlaggedFails
kind = 'shared-library'
product = 'alpha'
PassesClean
kind = 'shared-library'
capability = 'request-signing'

Why it matters

Contradictory ownership fields make path and component-name derivation ambiguous.

How detection works

A component omits a required identity field or declares a forbidden field.

What is inspected

  • component kind, product, and capability fields

How to fix it

Make the component fields match the selected component kind.

  1. Add required identity fields and remove fields forbidden for this kind.

Verify

  • Run repo-lint again and confirm the rule passes.