mirror of
https://github.com/encounter/JSONAPI.git
synced 2026-03-30 11:18:38 -07:00
16 lines
304 B
Swift
16 lines
304 B
Swift
//
|
|
// Id+Arbitrary.swift
|
|
// JSONAPIArbitrary
|
|
//
|
|
// Created by Mathew Polzin on 1/14/19.
|
|
//
|
|
|
|
import SwiftCheck
|
|
import JSONAPI
|
|
|
|
extension Id: Arbitrary where RawType: Arbitrary {
|
|
public static var arbitrary: Gen<Id<RawType, IdentifiableType>> {
|
|
return RawType.arbitrary.map { Id(rawValue: $0) }
|
|
}
|
|
}
|