Everything works well and good structure.
This commit is contained in:
14
Sources/MusicBrainz/Models/Shared/Relation.swift
Normal file
14
Sources/MusicBrainz/Models/Shared/Relation.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
import Foundation
|
||||
|
||||
public struct Relation: Codable, Sendable {
|
||||
public let type: String
|
||||
public let direction: String
|
||||
public let url: URLResource?
|
||||
public let artist: Artist?
|
||||
public let release: Release?
|
||||
// Add other entities as needed
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case type, direction, url, artist, release
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user