Skip to content

Commit d5867d6

Browse files
author
Ron
authored
Merge pull request OAI#1251 from MikeRalphson/fix-server-example
Fix example; server variable default and enum must be strings
2 parents 1c3ccbc + 962f141 commit d5867d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

versions/3.0.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,10 @@ The following shows how variables can be used for a server configuration:
387387
},
388388
"port": {
389389
"enum": [
390-
8443,
391-
443
390+
"8443",
391+
"443"
392392
],
393-
"default": 8443
393+
"default": "8443"
394394
},
395395
"basePath": {
396396
"default": "v2"
@@ -412,9 +412,9 @@ servers:
412412
description: this value is assigned by the service provider, in this example `gigantic-server.com`
413413
port:
414414
enum:
415-
- 8443
416-
- 443
417-
default: 8443
415+
- '8443'
416+
- '443'
417+
default: '8443'
418418
basePath:
419419
# open meaning there is the opportunity to use special base paths as assigned by the provider, default is `v2`
420420
default: v2

0 commit comments

Comments
 (0)