mirror of
https://github.com/encounter/JSONAPI.git
synced 2026-03-30 11:18:38 -07:00
Remove unused error and add a bit of code documentation
This commit is contained in:
@@ -11,6 +11,9 @@ import AnyCodable
|
||||
/// A Sampleable type can provide a sample value.
|
||||
/// This is useful for reflection.
|
||||
public protocol Sampleable {
|
||||
/// Get a sample value of type Self. This can be the
|
||||
/// same value every time, or it can be an arbitrarily random
|
||||
/// value each time.
|
||||
static var sample: Self { get }
|
||||
}
|
||||
|
||||
@@ -94,7 +97,3 @@ extension NoLinks: Sampleable {
|
||||
return .none
|
||||
}
|
||||
}
|
||||
|
||||
public enum SampleableError: Swift.Error {
|
||||
case allowedValuesNotOfExpectedType(forNode: JSONNode, allowedValues: [Any])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user