Skip to content

Commit bbddebb

Browse files
Merge pull request #5531 from karenetheridge/ether/v3.3-fix-openapi-versions
v3.3: fix openapi version in these examples
2 parents 376f1ac + f1d6ef6 commit bbddebb

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/oas.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ Unless specified otherwise, relative references are resolved using the URLs defi
288288
Assume a retrieval URI of `https://device1.example.com` for the following OpenAPI document:
289289

290290
```yaml
291-
openapi: 3.2.0
291+
openapi: 3.3.0
292292
$self: https://apidescriptions.example.com/foo
293293
info:
294294
title: Example API
@@ -5285,7 +5285,7 @@ For OpenAPI documents, this source is the OpenAPI Object's `$self` field, while
52855285
Assume the retrieval URI of the following document is `file://home/someone/src/api/openapi.yaml`:
52865286

52875287
```yaml
5288-
openapi: 3.2.0
5288+
openapi: 3.3.0
52895289
$self: https://example.com/api/openapi
52905290
info:
52915291
title: Example API
@@ -5300,7 +5300,7 @@ paths:
53005300
Assume the retrieval URI for the following document is `https://git.example.com/shared/blob/main/shared/foo.yaml`:
53015301

53025302
```yaml
5303-
openapi: 3.2.0
5303+
openapi: 3.3.0
53045304
$self: https://example.com/api/shared/foo
53055305
info:
53065306
title: Shared components for all APIs
@@ -5352,7 +5352,7 @@ RFC2557 was written to allow sending hyperlinked sets of documents as email atta
53525352
Content-Type: application/openapi+yaml
53535353
Content-Location: https://example.com/api/openapi.yaml
53545354
5355-
openapi: 3.2.0
5355+
openapi: 3.3.0
53565356
info:
53575357
title: Example API
53585358
version: 1.0
@@ -5405,7 +5405,7 @@ If no base URI is provided from either of the previous sources, the next source
54055405
Assume this document was retrieved from `https://example.com/api/openapis.yaml`:
54065406

54075407
```yaml
5408-
openapi: 3.2.0
5408+
openapi: 3.3.0
54095409
info:
54105410
title: Example API
54115411
version: 1.0
@@ -5446,7 +5446,7 @@ Let's re-consider the first example in this appendix, but with relative URI refe
54465446
Assume that the following is retrieved from `https://staging.example.com/api/openapi`:
54475447

54485448
```yaml
5449-
openapi: 3.2.0
5449+
openapi: 3.3.0
54505450
$self: /api/openapi
54515451
info:
54525452
title: Example API
@@ -5461,7 +5461,7 @@ paths:
54615461
Assume the retrieval URI for the following document is `https://staging.example.com/api/shared/foo`:
54625462

54635463
```yaml
5464-
openapi: 3.2.0
5464+
openapi: 3.3.0
54655465
$self: /api/shared/foo
54665466
info:
54675467
title: Shared components for all APIs

tests/md2html/fixtures/basic-new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<span class="hljs-literal">Content-Type:<span class="hljs-attr"> application/openapi+yaml</span></span>
5050
<span class="hljs-literal">Content-Location:<span class="hljs-attr"> https://inaccessible-domain.com/api/openapi.yaml</span></span>
5151

52-
openapi: 3.2.0
52+
openapi: 3.3.0
5353
info:
5454
title: Example API
5555
version: 1.0

tests/md2html/fixtures/basic-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ https://foo.com/bar{?baz*,qux}
6767
Content-Type: application/openapi+yaml
6868
Content-Location: https://inaccessible-domain.com/api/openapi.yaml
6969
70-
openapi: 3.2.0
70+
openapi: 3.3.0
7171
info:
7272
title: Example API
7373
version: 1.0

0 commit comments

Comments
 (0)