scope required | string\A[a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,... Example: mona |
name required | string\A\p{XID_Start}\p{XID_Continue}*\z Example: LinkedList |
Content-Type | string Value: "application/vnd.swift.registry.v1+json" |
{- "releases": {
- "1.1.0": {
- "problem": {
- "status": 410,
- "detail": "this release was removed from the registry",
- "title": "Gone"
}
},
}
}
url required | string <url> Example: url=https://github.com/mona/LinkedList |
Content-Type | string Value: "application/vnd.swift.registry.v1+json" |
{- "identifiers": [
- "mona.LinkedList"
]
}
scope required | string\A[a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,... Example: mona |
name required | string\A\p{XID_Start}\p{XID_Continue}*\z Example: LinkedList |
version required |
Content-Type | string Value: "application/vnd.swift.registry.v1+json" |
{- "description": "One thing links to another.",
- "keywords": [
- "data-structure",
- "collection"
], - "version": "1.1.1",
- "name": "LinkedList",
- "@type": "SoftwareSourceCode",
- "author": {
- "@type": "Person",
- "middleName": "Lisa",
- "familyName": "Octocat",
- "givenName": "Mona"
}, - "license": "MIT"
}
scope required | string\A[a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,... Example: mona |
name required | string\A\p{XID_Start}\p{XID_Continue}*\z Example: LinkedList |
version required |
Content-Type | string Value: "application/vnd.swift.registry.v1+json" |
{- "releases": {
- "1.1.0": {
- "problem": {
- "status": 410,
- "detail": "this release was removed from the registry",
- "title": "Gone"
}
},
}
}
scope required | string\A[a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,... Example: mona |
name required | string\A\p{XID_Start}\p{XID_Continue}*\z Example: LinkedList |
version required |
swift-version | string\d+(?:\.(\d+)){0,2} Example: swift-version=1.2.3 |
Content-Type | string Value: "application/vnd.swift.registry.v1+swift" |
// swift-tools-version:5.0 import PackageDescription let package = Package( name: "LinkedList", products: [ .library(name: "LinkedList", targets: ["LinkedList"]) ], targets: [ .target(name: "LinkedList"), .testTarget(name: "LinkedListTests", dependencies: ["LinkedList"]), ], swiftLanguageVersions: [.v4, .v5] )
scope required | string\A[a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,... Example: mona |
name required | string\A\p{XID_Start}\p{XID_Continue}*\z Example: LinkedList |
version required |
Content-Type | string Value: "application/vnd.swift.registry.v1+zip" |
{- "accounts": [
- "/account/12345",
- "/account/67890"
], - "balance": 30,
- "detail": "Your current balance is 30, but that costs 50.",
- "title": "You do not have enough credit.",
- "instance": "/account/12345/msgs/abc"
}