Skip to content

Commit 798a6cf

Browse files
authored
fix: allow-list upstream (#399)
1 parent d0e3420 commit 798a6cf

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

internal/projectconfig/specsource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package projectconfig
66
// Provides source information for locating the spec for a component.
77
type SpecSource struct {
88
// SourceType indicates the type of source for the spec.
9-
SourceType SpecSourceType `toml:"type" validate:"omitempty,oneof=local upstream" jsonschema:"required,enum=local,enum=,title=Source Type,description=The type of the spec source"`
9+
SourceType SpecSourceType `toml:"type" validate:"omitempty,oneof=local upstream" jsonschema:"required,enum=local,enum=upstream,enum=,title=Source Type,description=The type of the spec source"`
1010

1111
// Path indicates the path to the spec file; only relevant for local specs.
1212
Path string `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"`

scenario/__snapshots__/TestSnapshotsContainer_config_generate-schema_stdout_1.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@
402402
"type": "string",
403403
"enum": [
404404
"local",
405+
"upstream",
405406
""
406407
],
407408
"title": "Source Type",

scenario/__snapshots__/TestSnapshots_config_generate-schema_stdout_1.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@
402402
"type": "string",
403403
"enum": [
404404
"local",
405+
"upstream",
405406
""
406407
],
407408
"title": "Source Type",

schemas/azldev.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@
402402
"type": "string",
403403
"enum": [
404404
"local",
405+
"upstream",
405406
""
406407
],
407408
"title": "Source Type",

0 commit comments

Comments
 (0)