31
31
32
32
/**
33
33
* This interface allows application developers to filter different parts of the OpenAPI model tree.
34
- *
34
+ *
35
35
* A common scenario is to dynamically augment (update or remove) OpenAPI elements based on the environment that the
36
36
* application is currently in.
37
- *
37
+ *
38
38
* The registration of this filter is controlled by setting the key <b>mp.openapi.filter</b> using one of the
39
39
* configuration sources specified in <a href="https://github.com/eclipse/microprofile-config">MicroProfile Config</a>.
40
40
* The value is the fully qualified name of the filter implementation, which needs to be visible to the application's
@@ -46,7 +46,7 @@ public interface OASFilter {
46
46
/**
47
47
* Allows filtering of a particular PathItem. Implementers of this method can choose to update the given PathItem,
48
48
* pass it back as-is, or return null if removing this PathItem.
49
- *
49
+ *
50
50
* @param pathItem
51
51
* the current PathItem element
52
52
* @return the PathItem to be used or null
@@ -58,7 +58,7 @@ default PathItem filterPathItem(PathItem pathItem) {
58
58
/**
59
59
* Allows filtering of a particular Operation. Implementers of this method can choose to update the given Operation,
60
60
* pass it back as-is, or return null if removing this Operation.
61
- *
61
+ *
62
62
* @param operation
63
63
* the current Operation element
64
64
* @return the Operation to be used or null
@@ -70,7 +70,7 @@ default Operation filterOperation(Operation operation) {
70
70
/**
71
71
* Allows filtering of a particular Parameter. Implementers of this method can choose to update the given Parameter,
72
72
* pass it back as-is, or return null if removing this Parameter.
73
- *
73
+ *
74
74
* @param parameter
75
75
* the current Parameter element
76
76
* @return the Parameter to be used or null
@@ -82,7 +82,7 @@ default Parameter filterParameter(Parameter parameter) {
82
82
/**
83
83
* Allows filtering of a particular Header. Implementers of this method can choose to update the given Header, pass
84
84
* it back as-is, or return null if removing this Header.
85
- *
85
+ *
86
86
* @param header
87
87
* the current Header element
88
88
* @return the Header to be used or null
@@ -94,7 +94,7 @@ default Header filterHeader(Header header) {
94
94
/**
95
95
* Allows filtering of a particular RequestBody. Implementers of this method can choose to update the given
96
96
* RequestBody, pass it back as-is, or return null if removing this RequestBody.
97
- *
97
+ *
98
98
* @param requestBody
99
99
* the current RequestBody element
100
100
* @return the RequestBody to be used or null
@@ -106,7 +106,7 @@ default RequestBody filterRequestBody(RequestBody requestBody) {
106
106
/**
107
107
* Allows filtering of a particular APIResponse. Implementers of this method can choose to update the given
108
108
* APIResponse, pass it back as-is, or return null if removing this APIResponse.
109
- *
109
+ *
110
110
* @param apiResponse
111
111
* the current APIResponse element
112
112
* @return the APIResponse to be used or null
@@ -118,7 +118,7 @@ default APIResponse filterAPIResponse(APIResponse apiResponse) {
118
118
/**
119
119
* Allows filtering of a particular Schema. Implementers of this method can choose to update the given Schema, pass
120
120
* it back as-is, or return null if removing this Schema.
121
- *
121
+ *
122
122
* @param schema
123
123
* the current Schema element
124
124
* @return the Schema to be used or null
@@ -130,7 +130,7 @@ default Schema filterSchema(Schema schema) {
130
130
/**
131
131
* Allows filtering of a particular SecurityScheme. Implementers of this method can choose to update the given
132
132
* SecurityScheme, pass it back as-is, or return null if removing this SecurityScheme.
133
- *
133
+ *
134
134
* @param securityScheme
135
135
* the current SecurityScheme element
136
136
* @return the SecurityScheme to be used or null
@@ -142,7 +142,7 @@ default SecurityScheme filterSecurityScheme(SecurityScheme securityScheme) {
142
142
/**
143
143
* Allows filtering of a particular Server. Implementers of this method can choose to update the given Server, pass
144
144
* it back as-is, or return null if removing this Server.
145
- *
145
+ *
146
146
* @param server
147
147
* the current Server element
148
148
* @return the Server to be used or null
@@ -154,7 +154,7 @@ default Server filterServer(Server server) {
154
154
/**
155
155
* Allows filtering of a particular Tag. Implementers of this method can choose to update the given Tag, pass it
156
156
* back as-is, or return null if removing this Tag.
157
- *
157
+ *
158
158
* @param tag
159
159
* the current Tag element
160
160
* @return the Tag to be used or null
@@ -166,7 +166,7 @@ default Tag filterTag(Tag tag) {
166
166
/**
167
167
* Allows filtering of a particular Link. Implementers of this method can choose to update the given Link, pass it
168
168
* back as-is, or return null if removing this Link.
169
- *
169
+ *
170
170
* @param link
171
171
* the current Link element
172
172
* @return the Link to be used or null
@@ -178,7 +178,7 @@ default Link filterLink(Link link) {
178
178
/**
179
179
* Allows filtering of a particular Callback. Implementers of this method can choose to update the given Callback,
180
180
* pass it back as-is, or return null if removing this Callback.
181
- *
181
+ *
182
182
* @param callback
183
183
* the current Callback element
184
184
* @return the Callback to be used or null
@@ -192,7 +192,7 @@ default Callback filterCallback(Callback callback) {
192
192
* or do nothing if no change is required. Note that one cannot remove this element from the model tree, hence the
193
193
* return type of void. This is the last method called for a given filter, therefore it symbolizes the end of
194
194
* processing by the vendor framework.
195
- *
195
+ *
196
196
* @param openAPI
197
197
* the current OpenAPI element
198
198
*/
0 commit comments