Skip to content

Commit 32c2b1f

Browse files
committed
fix server-url documentation
1 parent 0aa26a7 commit 32c2b1f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/modules/ROOT/pages/processor/server-url.adoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ and a mapping
3131
----
3232
openapi-processor-mapping: {var-mapping-version}
3333
options:
34-
server-url: true
34+
base-path:
35+
server-url: true
3536
----
3637

3738
it will generate a simple resource properties file with a single property `openapi.base.path`:
@@ -48,9 +49,10 @@ If there are multiple servers, its index can be used to select it:
4849
----
4950
openapi-processor-mapping: {var-mapping-version}
5051
options:
51-
server-url: 0 # same as true
52-
# server-url: 1
53-
# server-url: 2
52+
base-path:
53+
server-url: 0 # same as true
54+
# server-url: 1
55+
# server-url: 2
5456
----
5557

5658
== using the generated properties file
@@ -69,14 +71,15 @@ While it is possible to import the generated properties file, it is probably bet
6971

7072
== name of the properties file
7173

72-
The default name of the generated properties file is `api.properties`. it is configurable using the xref:processor/configuration.adoc#_basepath_propertiesname[server-url:properties-name] option.
74+
The default name of the generated properties file is `api.properties`. it is configurable using the xref:processor/configuration.adoc#_basepath_propertiesname[options:base-path:server-url:properties-name] option.
7375

7476
[source,yaml,subs=attributes+]
7577
----
7678
openapi-processor-mapping: {var-mapping-version}
7779
7880
options:
79-
server-url:
81+
base-path:
82+
server-url:
8083
properties-name: base-path.properties
8184
----
8285

0 commit comments

Comments
 (0)