diff --git a/Sources/JSONAPIOpenAPI/Sampleable.swift b/Sources/JSONAPIOpenAPI/Sampleable.swift index 8302ae7..bfcf491 100644 --- a/Sources/JSONAPIOpenAPI/Sampleable.swift +++ b/Sources/JSONAPIOpenAPI/Sampleable.swift @@ -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]) -}