Commit dde1fdc
committed
Make OpenApiRouteBuilder spec path cross-platform
The auto-built OpenAPI route embeds specFile.getAbsolutePath() into an EL
`${read('...')}` string literal for the validator and mock-handler config.
On Windows the absolute path uses the '\' separator, which the EL parser
treats as an (invalid) escape sequence, so the generated route fails to parse
and never loads. Normalise the platform separator to '/', which read()/File
accept on every OS (no-op on Linux/macOS).1 parent d326bcd commit dde1fdc
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
113 | | - | |
| 119 | + | |
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| |||
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
128 | | - | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
| |||
0 commit comments