You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/projectconfig/specsource.go
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,17 @@ package projectconfig
5
5
6
6
// Provides source information for locating the spec for a component.
7
7
typeSpecSourcestruct {
8
+
// SourceType indicates the type of source for the spec.
8
9
SourceTypeSpecSourceType`toml:"type" validate:"omitempty,oneof=local upstream" jsonschema:"required,enum=local,enum=,title=Source Type,description=The type of the spec source"`
9
10
10
-
// Only relevant for local specs.
11
+
// Path indicates the path to the spec file; only relevant for local specs.
11
12
Pathstring`toml:"path,omitempty" json:",omitempty" validate:"excluded_unless=SourceType local,required_if=SourceType local" jsonschema:"title=Path,description=Path to the spec (if available locally),example=specs/mycomponent.spec"`
12
13
13
-
// Only relevant for upstream specs.
14
+
// UpstreamDistro indicates the upstream distro providing the spec; only relevant for upstream specs.
14
15
UpstreamDistroDistroReference`toml:"upstream-distro,omitempty" json:",omitempty" jsonschema:"title=Upstream distro,description=Reference to the upstream distro providing the spec"`
16
+
17
+
// UpstreamName indicates the name of the component in the upstream distro; only relevant for upstream specs.
18
+
UpstreamNamestring`toml:"upstream-name,omitempty" json:",omitempty" validate:"excluded_unless=SourceType upstream" jsonschema:"title=Upstream component name,description=Name of the component in the upstream distro,example=different-name"`
0 commit comments