Add strict custom field registry
This commit is contained in:
@@ -17,15 +17,16 @@ var resolutionRank = map[string]int{
|
||||
}
|
||||
|
||||
type Unit struct {
|
||||
ID string `json:"id" yaml:"id"`
|
||||
Title string `json:"title,omitempty" yaml:"title"`
|
||||
Context string `json:"context,omitempty" yaml:"context"`
|
||||
Resolution string `json:"resolution,omitempty" yaml:"resolution"`
|
||||
With Relations `json:"with,omitempty" yaml:"with"`
|
||||
Refines string `json:"refines,omitempty" yaml:"refines"`
|
||||
Type string `json:"type,omitempty" yaml:"type"`
|
||||
Links Links `json:"links,omitempty" yaml:"links"`
|
||||
File string `json:"file,omitempty" yaml:"-"`
|
||||
ID string `json:"id" yaml:"id"`
|
||||
Title string `json:"title,omitempty" yaml:"title"`
|
||||
Context string `json:"context,omitempty" yaml:"context"`
|
||||
Resolution string `json:"resolution,omitempty" yaml:"resolution"`
|
||||
With Relations `json:"with,omitempty" yaml:"with"`
|
||||
Refines string `json:"refines,omitempty" yaml:"refines"`
|
||||
Type string `json:"type,omitempty" yaml:"type"`
|
||||
Links Links `json:"links,omitempty" yaml:"links"`
|
||||
File string `json:"file,omitempty" yaml:"-"`
|
||||
RawFields map[string]any `json:"-" yaml:"-"`
|
||||
}
|
||||
|
||||
type Relation struct {
|
||||
@@ -148,6 +149,7 @@ func (r *Report) addNotice(code, id, file, message string) {
|
||||
type Project struct {
|
||||
Root string
|
||||
Manifest *Manifest
|
||||
Fields *FieldRegistry
|
||||
Units []*Unit
|
||||
ByID map[string]*Unit
|
||||
Duplicates map[string][]*Unit
|
||||
|
||||
Reference in New Issue
Block a user