Skip to content

Commit 089000d

Browse files
committed
Add Digest and Content-Length headers to responses in OpenAPI specification
1 parent 6aef710 commit 089000d

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

Documentation/RegistryDraft.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ components:
979979
type: object
980980
example:
981981
identifiers:
982-
- "mona.LinkedList"
982+
- mona.LinkedList
983983
properties:
984984
identifiers:
985985
type: array
@@ -999,16 +999,16 @@ components:
999999
- /account/67890
10001000
detail: Your current balance is 30, but that costs 50.
10011001
properties:
1002+
instance:
1003+
type: string
1004+
detail:
1005+
type: string
10021006
type:
10031007
type: string
10041008
format: uriref
1005-
title:
1006-
type: string
10071009
status:
10081010
type: number
1009-
instance:
1010-
type: string
1011-
detail:
1011+
title:
10121012
type: string
10131013
required:
10141014
- detail
@@ -1040,15 +1040,21 @@ components:
10401040
Location:
10411041
schema:
10421042
type: string
1043+
Digest:
1044+
schema:
1045+
type: string
1046+
Content-Length:
1047+
schema:
1048+
type: integer
10431049
parameters:
10441050
scope:
10451051
name: scope
10461052
in: path
10471053
required: true
10481054
schema:
10491055
type: string
1050-
example: "mona"
1051-
pattern: \A[a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,38}\z
1056+
example: mona
1057+
pattern: \A[a-zA-Z\d](?:[a-zA-Z\d]|-(?=[a-zA-Z\d])){0,39}\z
10521058
name:
10531059
name: name
10541060
in: path
@@ -1087,16 +1093,16 @@ components:
10871093
releases:
10881094
value:
10891095
releases:
1090-
1.1.1:
1091-
url: https://swift.pkg.github.com/mona/LinkedList/1.1.1
10921096
1.1.0:
10931097
problem:
1094-
status: 410
10951098
title: Gone
10961099
detail: this release was removed from the registry
1100+
status: 410
10971101
url: https://swift.pkg.github.com/mona/LinkedList/1.1.0
10981102
1.0.0:
10991103
url: https://swift.pkg.github.com/mona/LinkedList/1.0.0
1104+
1.1.1:
1105+
url: https://swift.pkg.github.com/mona/LinkedList/1.1.1
11001106
manifest:
11011107
value: >-
11021108
// swift-tools-version:5.0
@@ -1120,28 +1126,28 @@ components:
11201126
keywords:
11211127
- data-structure
11221128
- collection
1123-
version: 1.1.1
1124-
"@type": SoftwareSourceCode
11251129
author:
1126-
"@type": Person
11271130
"@id": https://github.com/mona
1128-
middleName: Lisa
1131+
"@type": Person
11291132
givenName: Mona
11301133
familyName: Octocat
1131-
license: https://www.apache.org/licenses/LICENSE-2.0
1132-
programmingLanguage:
1133-
url: https://swift.org
1134-
name: Swift
1135-
"@type": ComputerLanguage
1134+
middleName: Lisa
11361135
codeRepository: https://github.com/mona/LinkedList
11371136
"@context":
11381137
- http://schema.org/
1139-
description: One thing links to another.
1138+
license: MIT
1139+
"@type": SoftwareSourceCode
1140+
programmingLanguage:
1141+
name: Swift
1142+
"@type": ComputerLanguage
1143+
url: https://swift.org
11401144
name: LinkedList
1145+
description: One thing links to another.
1146+
version: 1.1.1
11411147
identifiers:
11421148
value:
11431149
identifiers:
1144-
- "mona.LinkedList"
1150+
- mona.LinkedList
11451151
headers:
11461152
contentVersion:
11471153
required: true

0 commit comments

Comments
 (0)