Skip to content

Commit d08fdc0

Browse files
Copilotchristophercoreubenodmcilvaney
authored
fix: remove truncated (e.g.) example from hash-type schema description (#87)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: christopherco <35273088+christopherco@users.noreply.github.com> Co-authored-by: reuben olinsky <reubeno@users.noreply.github.com> Co-authored-by: dmcilvaney <23200982+dmcilvaney@users.noreply.github.com>
1 parent 8eba605 commit d08fdc0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

internal/projectconfig/component.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type SourceFileReference struct {
5858
Hash string `toml:"hash,omitempty" json:"hash,omitempty"`
5959

6060
// Type of hash used by Hash (e.g., "SHA256", "SHA512").
61-
HashType fileutils.HashType `toml:"hash-type,omitempty" json:"hashType,omitempty" jsonschema:"enum=SHA256,enum=SHA512,title=Hash type,description=Hash algorithm used for the hash value (e.g., SHA256, SHA512)"`
61+
HashType fileutils.HashType `toml:"hash-type,omitempty" json:"hashType,omitempty" jsonschema:"enum=SHA256,enum=SHA512,title=Hash type,description=Hash algorithm used for the hash value"`
6262

6363
// Origin for this source file. When omitted, the file is resolved via the lookaside cache.
6464
Origin Origin `toml:"origin,omitempty" json:"origin,omitempty"`

scenario/__snapshots__/TestSnapshotsContainer_config_generate-schema_stdout_1.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@
666666
"SHA512"
667667
],
668668
"title": "Hash type",
669-
"description": "Hash algorithm used for the hash value (e.g."
669+
"description": "Hash algorithm used for the hash value"
670670
},
671671
"origin": {
672672
"$ref": "#/$defs/Origin"

scenario/__snapshots__/TestSnapshots_config_generate-schema_stdout_1.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@
666666
"SHA512"
667667
],
668668
"title": "Hash type",
669-
"description": "Hash algorithm used for the hash value (e.g."
669+
"description": "Hash algorithm used for the hash value"
670670
},
671671
"origin": {
672672
"$ref": "#/$defs/Origin"

schemas/azldev.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@
666666
"SHA512"
667667
],
668668
"title": "Hash type",
669-
"description": "Hash algorithm used for the hash value (e.g."
669+
"description": "Hash algorithm used for the hash value"
670670
},
671671
"origin": {
672672
"$ref": "#/$defs/Origin"

0 commit comments

Comments
 (0)