Skip to content

Commit cb743b3

Browse files
committed
Javadoc update
1 parent afe3054 commit cb743b3

File tree

182 files changed

+2420
-1615
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+2420
-1615
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ protected void calculatePath(RouterOperation routerOperation, Locale locale) {
612612
* @param handlerMethod the handler method
613613
* @param operationPath the operation path
614614
* @param requestMethods the request methods
615+
* @param consumes the consumes
616+
* @param produces the produces
617+
* @param headers the headers
615618
* @param locale the locale
616619
*/
617620
protected void calculatePath(HandlerMethod handlerMethod, String operationPath,

springdoc-openapi-common/src/main/java/org/springdoc/api/ErrorMessage.java

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
/*
22
*
3-
* * Copyright 2019-2020 the original author or authors.
43
* *
5-
* * Licensed under the Apache License, Version 2.0 (the "License");
6-
* * you may not use this file except in compliance with the License.
7-
* * You may obtain a copy of the License at
4+
* * *
5+
* * * * Copyright 2019-2022 the original author or authors.
6+
* * * *
7+
* * * * Licensed under the Apache License, Version 2.0 (the "License");
8+
* * * * you may not use this file except in compliance with the License.
9+
* * * * You may obtain a copy of the License at
10+
* * * *
11+
* * * * https://www.apache.org/licenses/LICENSE-2.0
12+
* * * *
13+
* * * * Unless required by applicable law or agreed to in writing, software
14+
* * * * distributed under the License is distributed on an "AS IS" BASIS,
15+
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* * * * See the License for the specific language governing permissions and
17+
* * * * limitations under the License.
18+
* * *
819
* *
9-
* * https://www.apache.org/licenses/LICENSE-2.0
10-
* *
11-
* * Unless required by applicable law or agreed to in writing, software
12-
* * distributed under the License is distributed on an "AS IS" BASIS,
13-
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
* * See the License for the specific language governing permissions and
15-
* * limitations under the License.
1620
*
1721
*/
1822

springdoc-openapi-common/src/main/java/org/springdoc/api/OpenApiResourceNotFoundException.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
*
3+
* *
4+
* * *
5+
* * * * Copyright 2019-2022 the original author or authors.
6+
* * * *
7+
* * * * Licensed under the Apache License, Version 2.0 (the "License");
8+
* * * * you may not use this file except in compliance with the License.
9+
* * * * You may obtain a copy of the License at
10+
* * * *
11+
* * * * https://www.apache.org/licenses/LICENSE-2.0
12+
* * * *
13+
* * * * Unless required by applicable law or agreed to in writing, software
14+
* * * * distributed under the License is distributed on an "AS IS" BASIS,
15+
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* * * * See the License for the specific language governing permissions and
17+
* * * * limitations under the License.
18+
* * *
19+
* *
20+
*
21+
*/
22+
123
package org.springdoc.api;
224

325
/**

springdoc-openapi-common/src/main/java/org/springdoc/api/annotations/ParameterObject.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
/*
22
*
33
* *
4-
* * * Copyright 2019-2020 the original author or authors.
54
* * *
6-
* * * Licensed under the Apache License, Version 2.0 (the "License");
7-
* * * you may not use this file except in compliance with the License.
8-
* * * You may obtain a copy of the License at
5+
* * * * Copyright 2019-2022 the original author or authors.
6+
* * * *
7+
* * * * Licensed under the Apache License, Version 2.0 (the "License");
8+
* * * * you may not use this file except in compliance with the License.
9+
* * * * You may obtain a copy of the License at
10+
* * * *
11+
* * * * https://www.apache.org/licenses/LICENSE-2.0
12+
* * * *
13+
* * * * Unless required by applicable law or agreed to in writing, software
14+
* * * * distributed under the License is distributed on an "AS IS" BASIS,
15+
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* * * * See the License for the specific language governing permissions and
17+
* * * * limitations under the License.
918
* * *
10-
* * * https://www.apache.org/licenses/LICENSE-2.0
11-
* * *
12-
* * * Unless required by applicable law or agreed to in writing, software
13-
* * * distributed under the License is distributed on an "AS IS" BASIS,
14-
* * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* * * See the License for the specific language governing permissions and
16-
* * * limitations under the License.
1719
* *
1820
*
1921
*/
Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
/*
22
*
33
* *
4-
* * * Copyright 2019-2020 the original author or authors.
54
* * *
6-
* * * Licensed under the Apache License, Version 2.0 (the "License");
7-
* * * you may not use this file except in compliance with the License.
8-
* * * You may obtain a copy of the License at
5+
* * * * Copyright 2019-2022 the original author or authors.
6+
* * * *
7+
* * * * Licensed under the Apache License, Version 2.0 (the "License");
8+
* * * * you may not use this file except in compliance with the License.
9+
* * * * You may obtain a copy of the License at
10+
* * * *
11+
* * * * https://www.apache.org/licenses/LICENSE-2.0
12+
* * * *
13+
* * * * Unless required by applicable law or agreed to in writing, software
14+
* * * * distributed under the License is distributed on an "AS IS" BASIS,
15+
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* * * * See the License for the specific language governing permissions and
17+
* * * * limitations under the License.
918
* * *
10-
* * * https://www.apache.org/licenses/LICENSE-2.0
11-
* * *
12-
* * * Unless required by applicable law or agreed to in writing, software
13-
* * * distributed under the License is distributed on an "AS IS" BASIS,
14-
* * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* * * See the License for the specific language governing permissions and
16-
* * * limitations under the License.
1719
* *
1820
*
1921
*/
@@ -32,19 +34,36 @@
3234
import io.swagger.v3.oas.models.Paths;
3335

3436
/**
37+
* The interface Sorted open api mixin.
3538
* @author bnasslashen
3639
*/
3740
@JsonPropertyOrder(value = {"openapi", "info", "externalDocs", "servers", "security", "tags", "paths", "components"}, alphabetic = true)
3841
public interface SortedOpenAPIMixin {
3942

43+
/**
44+
* Gets extensions.
45+
*
46+
* @return the extensions
47+
*/
4048
@JsonAnyGetter
4149
@JsonInclude(value = Include.ALWAYS)
4250
@JsonPropertyOrder(alphabetic = true)
4351
Map<String, Object> getExtensions();
4452

53+
/**
54+
* Add extension.
55+
*
56+
* @param name the name
57+
* @param value the value
58+
*/
4559
@JsonAnySetter
4660
void addExtension(String name, Object value);
4761

62+
/**
63+
* Gets paths.
64+
*
65+
* @return the paths
66+
*/
4867
@JsonSerialize(using = PathsSerializer.class)
4968
Paths getPaths();
5069
}

springdoc-openapi-common/src/main/java/org/springdoc/api/mixins/SortedOpenAPIMixin31.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,36 @@
3434
import io.swagger.v3.oas.models.Paths;
3535

3636
/**
37+
* The interface Sorted open api mixin 31.
3738
* @author bnasslashen
3839
*/
3940
@JsonPropertyOrder(value = {"openapi", "info", "externalDocs", "servers", "security", "tags", "paths", "components", "webhooks"}, alphabetic = true)
4041
public interface SortedOpenAPIMixin31 {
4142

43+
/**
44+
* Gets extensions.
45+
*
46+
* @return the extensions
47+
*/
4248
@JsonAnyGetter
4349
@JsonInclude(value = Include.ALWAYS)
4450
@JsonPropertyOrder(alphabetic = true)
4551
Map<String, Object> getExtensions();
4652

53+
/**
54+
* Add extension.
55+
*
56+
* @param name the name
57+
* @param value the value
58+
*/
4759
@JsonAnySetter
4860
void addExtension(String name, Object value);
4961

62+
/**
63+
* Gets paths.
64+
*
65+
* @return the paths
66+
*/
5067
@JsonSerialize(using = PathsSerializer.class)
5168
Paths getPaths();
5269

springdoc-openapi-common/src/main/java/org/springdoc/api/mixins/SortedSchemaMixin.java

Lines changed: 85 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
/*
22
*
33
* *
4-
* * * Copyright 2019-2020 the original author or authors.
54
* * *
6-
* * * Licensed under the Apache License, Version 2.0 (the "License");
7-
* * * you may not use this file except in compliance with the License.
8-
* * * You may obtain a copy of the License at
5+
* * * * Copyright 2019-2022 the original author or authors.
6+
* * * *
7+
* * * * Licensed under the Apache License, Version 2.0 (the "License");
8+
* * * * you may not use this file except in compliance with the License.
9+
* * * * You may obtain a copy of the License at
10+
* * * *
11+
* * * * https://www.apache.org/licenses/LICENSE-2.0
12+
* * * *
13+
* * * * Unless required by applicable law or agreed to in writing, software
14+
* * * * distributed under the License is distributed on an "AS IS" BASIS,
15+
* * * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* * * * See the License for the specific language governing permissions and
17+
* * * * limitations under the License.
918
* * *
10-
* * * https://www.apache.org/licenses/LICENSE-2.0
11-
* * *
12-
* * * Unless required by applicable law or agreed to in writing, software
13-
* * * distributed under the License is distributed on an "AS IS" BASIS,
14-
* * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* * * See the License for the specific language governing permissions and
16-
* * * limitations under the License.
1719
* *
1820
*
1921
*/
@@ -32,51 +34,123 @@
3234
import io.swagger.v3.oas.models.media.Schema;
3335

3436
/**
37+
* The interface Sorted schema mixin.
3538
* @author bnasslashen
3639
*/
3740
@JsonPropertyOrder(value = { "type", "format" }, alphabetic = true)
3841
public interface SortedSchemaMixin {
3942

43+
/**
44+
* Gets extensions.
45+
*
46+
* @return the extensions
47+
*/
4048
@JsonAnyGetter
4149
@JsonPropertyOrder(alphabetic = true)
4250
Map<String, Object> getExtensions();
4351

52+
/**
53+
* Add extension.
54+
*
55+
* @param name the name
56+
* @param value the value
57+
*/
4458
@JsonAnySetter
4559
void addExtension(String name, Object value);
4660

61+
/**
62+
* Gets example set flag.
63+
*
64+
* @return the example set flag
65+
*/
4766
@JsonIgnore
4867
boolean getExampleSetFlag();
4968

69+
/**
70+
* Gets example.
71+
*
72+
* @return the example
73+
*/
5074
@JsonInclude(JsonInclude.Include.CUSTOM)
5175
Object getExample();
5276

77+
/**
78+
* Gets json schema.
79+
*
80+
* @return the json schema
81+
*/
5382
@JsonIgnore
5483
Map<String, Object> getJsonSchema();
5584

85+
/**
86+
* Gets exclusive minimum value.
87+
*
88+
* @return the exclusive minimum value
89+
*/
5690
@JsonIgnore
5791
BigDecimal getExclusiveMinimumValue();
5892

93+
/**
94+
* Gets exclusive maximum value.
95+
*
96+
* @return the exclusive maximum value
97+
*/
5998
@JsonIgnore
6099
BigDecimal getExclusiveMaximumValue();
61100

101+
/**
102+
* Gets pattern properties.
103+
*
104+
* @return the pattern properties
105+
*/
62106
@JsonIgnore
63107
Map<String, Schema> getPatternProperties();
64108

109+
/**
110+
* Gets contains.
111+
*
112+
* @return the contains
113+
*/
65114
@JsonIgnore
66115
Schema getContains();
67116

117+
/**
118+
* Get id string.
119+
*
120+
* @return the string
121+
*/
68122
@JsonIgnore
69123
String get$id();
70124

125+
/**
126+
* Get anchor string.
127+
*
128+
* @return the string
129+
*/
71130
@JsonIgnore
72131
String get$anchor();
73132

133+
/**
134+
* Get schema string.
135+
*
136+
* @return the string
137+
*/
74138
@JsonIgnore
75139
String get$schema();
76140

141+
/**
142+
* Gets types.
143+
*
144+
* @return the types
145+
*/
77146
@JsonIgnore
78147
Set<String> getTypes();
79148

149+
/**
150+
* Gets json schema.
151+
*
152+
* @return the json schema
153+
*/
80154
@JsonIgnore
81155
Object getJsonSchemaImpl();
82156

0 commit comments

Comments
 (0)