Skip to content

Commit 9781b8e

Browse files
Add Hashable conformance to model types
Resolves #46
1 parent 13e780f commit 9781b8e

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

Sources/EvolutionMetadataModel/EvolutionMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// See https://swift.org/LICENSE.txt for license information
88
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
99

10-
public struct EvolutionMetadata: Equatable, Sendable, Codable {
10+
public struct EvolutionMetadata: Sendable, Hashable, Codable {
1111

1212
/// Schema version of this struct and its related types
1313
public static let schemaVersion = "1.0.0"

Sources/EvolutionMetadataModel/Proposal+Discussion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
extension Proposal {
1111

1212
/// Type that represents a discussion abou a proposal.
13-
public struct Discussion: Sendable, Codable, Equatable {
13+
public struct Discussion: Sendable, Hashable, Codable {
1414

1515
/// Name of the discussion
1616
public let name: String

Sources/EvolutionMetadataModel/Proposal+Implementation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
extension Proposal {
1111

1212
/// Type representing a repository code change of a proposal implementation
13-
public struct Implementation: Sendable, Equatable, Codable {
13+
public struct Implementation: Sendable, Hashable, Codable {
1414

1515
/// The GitHub account containing the implementation
1616
public let account: String

Sources/EvolutionMetadataModel/Proposal+Issue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension Proposal {
1313
///
1414
/// The `warnings` and `errors` properties contain instances of `Issue`
1515
///
16-
public struct Issue: Sendable, Equatable, Codable {
16+
public struct Issue: Sendable, Hashable, Codable {
1717

1818
/// Kind of issue, warning or error
1919
public let kind: Kind

Sources/EvolutionMetadataModel/Proposal+Person.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension Proposal {
1313
///
1414
/// The `authors` and `reviewManagers` properties contain instances of `Person`
1515
///
16-
public struct Person: Sendable, Codable, Equatable {
16+
public struct Person: Sendable, Hashable, Codable {
1717

1818
/// Name of the person
1919
public let name: String

Sources/EvolutionMetadataModel/Proposal+Status.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extension Proposal {
1818
///
1919
/// The `error` case has an associated `reason` version with a diagnostic string.
2020
///
21-
public enum Status: Equatable, Sendable, Comparable {
21+
public enum Status: Sendable, Hashable, Comparable {
2222
case awaitingReview
2323
case scheduledForReview(start: String, end: String)
2424
case activeReview(start: String, end: String)

Sources/EvolutionMetadataModel/Proposal+TrackingBug.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
extension Proposal {
1111

1212
/// Type that represents a tracking bug associated with a proposal.
13-
public struct TrackingBug: Sendable, Equatable, Codable {
13+
public struct TrackingBug: Sendable, Hashable, Codable {
1414

1515
/// Issue ID
1616
public let id: String

Sources/EvolutionMetadataModel/Proposal+UpcomingFeatureFlag.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
extension Proposal {
1111

1212
/// Type representing the upcoming feature flag associated with a proposal.
13-
public struct UpcomingFeatureFlag: Sendable, Equatable, Codable {
13+
public struct UpcomingFeatureFlag: Sendable, Hashable, Codable {
1414

1515
/// The upcoming feature flag
1616
public let flag: String

Sources/EvolutionMetadataModel/Proposal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Attributes are `var` variables and not `let` constants to make it easier to buil
6666

6767
*/
6868

69-
public struct Proposal: Equatable, Sendable, Codable, Identifiable {
69+
public struct Proposal: Sendable, Hashable, Codable, Identifiable {
7070

7171
/// Proposal ID in the format _SE-NNNN_. For example: "SE-0147"
7272
public var id: String

0 commit comments

Comments
 (0)