-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmapping.yaml
More file actions
32 lines (28 loc) · 1.06 KB
/
mapping.yaml
File metadata and controls
32 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
openapi-processor-mapping: v7
options:
package-name: de.eekboom.oap_example.foo_service
model-name-suffix: ''
model-type: record
enum-type: string
one-of-interface: true
bean-validation: jakarta
generated-date: true
format-code: true
javadoc: true
clear-target-dir: false
compatibility:
bean-validation-valid-on-reactive: false
identifier-word-break-from-digit-to-letter: false
map:
types:
# Add lombok @Builder annotation on all model classes for more readable object construction
- type: object @ lombok.Builder
parameters:
# Add request object to all methods to allow us to check the Authentication header
# I have not found a way to have only a specific request header added as a parameter.
- add: request => jakarta.servlet.http.HttpServletRequest
paths:
# This endpoint needs to return different entities depending on availability of evidence, so
# let it return generic ResponseEntity and make the implementation decide on the return type
/foo/{fooType}/search:
result: org.springframework.http.ResponseEntity