Reuse validation facts when attributing skipped edits
This commit is contained in:
@@ -26,8 +26,19 @@ type ProposalMetadata struct {
|
||||
type EnrichedCorrectionProposal struct {
|
||||
CorrectionProposal
|
||||
ProposalMetadata
|
||||
OriginalApplicability Applicability `json:"-"`
|
||||
}
|
||||
|
||||
// Applicability records whether validation previewed a proposal against the
|
||||
// original section and could apply it there.
|
||||
type Applicability uint8
|
||||
|
||||
const (
|
||||
ApplicabilityUnknown Applicability = iota
|
||||
Applicable
|
||||
Inapplicable
|
||||
)
|
||||
|
||||
// Validate checks only basic structural integrity of the proposal.
|
||||
// Semantic checks (staleness, span presence, replacement behavior) are handled
|
||||
// by proposal preview/application and validator execution.
|
||||
|
||||
Reference in New Issue
Block a user