Add Sampleable conformance to Unidentified. Rename file slightly.

This commit is contained in:
Mathew Polzin
2019-01-25 11:59:05 -08:00
parent 5ea83b07c1
commit 2988503d7d
@@ -1,5 +1,5 @@
//
// Sampleable+JSONAPI.swift
// JSONAPI+Sampleable.swift
// JSONAPIOpenAPI
//
// Created by Mathew Polzin on 1/24/19.
@@ -43,6 +43,12 @@ extension UnknownJSONAPIError: Sampleable {
}
}
extension Unidentified: Sampleable {
public static var sample: Unidentified {
return Unidentified()
}
}
extension Attribute: Sampleable where RawValue: Sampleable {
public static var sample: Attribute<RawValue> {
return .init(value: RawValue.sample)