|
1 | 1 | = (global) Parameter mappings |
| 2 | +include::partial$vars.adoc[] |
2 | 3 |
|
3 | 4 | Parameter mappings, as the name suggests, apply to the parameters of an endpoint method. |
4 | 5 |
|
|
51 | 52 |
|
52 | 53 | and an openapi.yaml with multiple endpoints having a parameter named "date" |
53 | 54 |
|
54 | | -[source,yaml] |
| 55 | +[source,yaml,subs="attributes"] |
55 | 56 | ---- |
56 | | -openapi: 3.0.2 |
| 57 | +openapi: {var-openapi-version} |
57 | 58 | info: |
58 | 59 | title: global parameter type mapping example |
59 | 60 | version: 1.0.0 |
@@ -107,9 +108,9 @@ It is possible to add additional parameters that is not described in the OpenAPI |
107 | 108 |
|
108 | 109 | While it is possible to add it at the global level, it is best used at the endpoint level. |
109 | 110 |
|
110 | | -[source,yaml] |
| 111 | +[source,yaml,subs="attributes"] |
111 | 112 | ---- |
112 | | -openapi-processor-mapping: v12 |
| 113 | +openapi-processor-mapping: {var-mapping-version} |
113 | 114 |
|
114 | 115 | options: |
115 | 116 | package-name: generated |
|
123 | 124 |
|
124 | 125 | Given the mapping configuration above and the following endpoint description: |
125 | 126 |
|
126 | | -[source,yaml] |
| 127 | +[source,yaml,subs="attributes"] |
127 | 128 | ---- |
128 | | -openapi: 3.1.0 |
| 129 | +openapi: {var-openapi-version} |
129 | 130 | info: |
130 | 131 | title: test additional endpoint parameter |
131 | 132 | version: 1.0.0 |
@@ -174,9 +175,9 @@ It may also be useful to remove a parameter, maybe it is handled by a request fi |
174 | 175 |
|
175 | 176 | Again, even if it is possible to add it at the global level, it is best used at the endpoint level. |
176 | 177 |
|
177 | | -[source,yaml] |
| 178 | +[source,yaml,subs="attributes"] |
178 | 179 | ---- |
179 | | -openapi-processor-mapping: v12 |
| 180 | +openapi-processor-mapping: {var-mapping-version} |
180 | 181 |
|
181 | 182 | options: |
182 | 183 | package-name: generated |
|
190 | 191 |
|
191 | 192 | Given the configuration above and the following endpoint description: |
192 | 193 |
|
193 | | -[source,yaml] |
| 194 | +[source,yaml,subs="attributes"] |
194 | 195 | ---- |
195 | | -openapi: 3.1.0 |
| 196 | +openapi: {var-openapi-version} |
196 | 197 | info: |
197 | 198 | title: test unnecessary endpoint parameter |
198 | 199 | version: 1.0.0 |
|
0 commit comments