Skip to content

Commit 500f337

Browse files
version 2.0.2
1 parent 55db2a4 commit 500f337

6 files changed

Lines changed: 29 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.1
77

88
## [unreleased]
99

10+
## [2.0.2] - 2026-02-03
11+
12+
### Changed
13+
14+
- Updated spring boot version to `4.0.2`
15+
16+
### Fixed
17+
18+
- Allow no value in `Filter` validation of `Value` content, required for null conditions
19+
1020
## [2.0.1] - 2026-01-21
1121

1222
### Fixed
@@ -181,7 +191,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.1
181191
### Added
182192
- Initial functional version of Apigen
183193

184-
[unreleased]: https://github.com/apiaddicts/apigen/releases/tag/2.0.1...HEAD
194+
[unreleased]: https://github.com/apiaddicts/apigen/releases/tag/2.0.2...HEAD
195+
[2.0.2]: https://github.com/apiaddicts/apigen/releases/tag/2.0.2
185196
[2.0.1]: https://github.com/apiaddicts/apigen/releases/tag/2.0.1
186197
[2.0.0]: https://github.com/apiaddicts/apigen/releases/tag/2.0.0
187198
[1.2.5]: https://github.com/apiaddicts/apigen/releases/tag/1.2.5

MIGRATION_GUIDE.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All changes required to migrate generated Apigen projects to new versions will be documented in this file.
44

5+
## From [2.0.1] to [2.0.2]
6+
7+
No migration required
8+
59
## From [2.0.0] to [2.0.1]
610

711
No migration required
@@ -138,7 +142,8 @@ In this version Apigen has been updated to be auto documented with `spring-doc`
138142
- Perform the Spring Boot migration from `2.4.x` to `2.6.x`
139143
- Remove the property `apigen.documentation.enabled`, now the documentation is managed by the `spring-doc` official properties
140144

141-
[unreleased]: https://github.com/apiaddicts/apigen/releases/tag/2.0.1...HEAD
145+
[unreleased]: https://github.com/apiaddicts/apigen/releases/tag/2.0.2...HEAD
146+
[2.0.2]: https://github.com/apiaddicts/apigen/releases/tag/2.0.2
142147
[2.0.1]: https://github.com/apiaddicts/apigen/releases/tag/2.0.1
143148
[2.0.0]: https://github.com/apiaddicts/apigen/releases/tag/2.0.0
144149
[1.2.5]: https://github.com/apiaddicts/apigen/releases/tag/1.2.5

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# 🛠️ Apigen ![Release](https://img.shields.io/badge/release-2.0.1-purple) ![Swagger](https://img.shields.io/badge/-openapi-%23Clojure?style=flat&logo=swagger&logoColor=white) ![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=flat&logo=openjdk&logoColor=white) ![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=flat&logo=spring&logoColor=white) [![License: LGPL v3](https://img.shields.io/badge/license-LGPL_v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)
2+
# 🛠️ Apigen ![Release](https://img.shields.io/badge/release-2.0.2-purple) ![Swagger](https://img.shields.io/badge/-openapi-%23Clojure?style=flat&logo=swagger&logoColor=white) ![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=flat&logo=openjdk&logoColor=white) ![Spring](https://img.shields.io/badge/spring-%236DB33F.svg?style=flat&logo=spring&logoColor=white) [![License: LGPL v3](https://img.shields.io/badge/license-LGPL_v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)
33

44
Welcome to **apigen.springboot**, made in spain ![Spain](https://raw.githubusercontent.com/stevenrskelton/flag-icon/master/png/16/country-4x3/es.png "Spain"), the opensource project in Java that allows you to generate an archetype of the springboot framework using the openapi file as a mapping tool between the openapi definition and the database. Click maven to see available mvnrepository dependencies.
55

@@ -50,7 +50,7 @@ java -jar generator-cli.jar help
5050
version: "3.3"
5151
services:
5252
apigen:
53-
image: "apiaddicts/apitools-apigen:2.0.1"
53+
image: "apiaddicts/apitools-apigen:2.0.2"
5454
ports:
5555
- "8080:8080"
5656
```

archetype-core-persistence/src/main/java/org/apiaddicts/apitools/apigen/archetypecore/core/persistence/filter/Value.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@ private boolean isFilter() {
5454
}
5555

5656
private boolean isExpression() {
57-
return nonNull(property) && hasOnlyOneValue();
57+
return nonNull(property) && ( hasOnlyOneValue() || hasNoValue() );
5858
}
5959

6060
private boolean hasOnlyOneValue() {
6161
return ( nonNull(value) && isNull(values) ) || ( isNull(value) && nonNull(values) );
6262
}
63+
64+
private boolean hasNoValue() {
65+
return isNull(value) && isNull(values);
66+
}
6367
}

archetype-parent-spring-boot/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>4.0.0</version>
9+
<version>4.0.2</version>
1010
<relativePath/>
1111
</parent>
1212

@@ -41,7 +41,7 @@
4141

4242
<properties>
4343

44-
<revision>2.0.1</revision>
44+
<revision>2.0.2</revision>
4545

4646
<java.version>21</java.version>
4747
<maven.compiler.source>21</maven.compiler.source>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.boot</groupId>
88
<artifactId>spring-boot-starter-parent</artifactId>
9-
<version>4.0.0</version>
9+
<version>4.0.2</version>
1010
<relativePath/> <!-- lookup parent from repository -->
1111
</parent>
1212

@@ -39,7 +39,7 @@
3939

4040
<properties>
4141

42-
<revision>2.0.1</revision>
42+
<revision>2.0.2</revision>
4343

4444
<java.version>21</java.version>
4545
<maven.compiler.source>21</maven.compiler.source>

0 commit comments

Comments
 (0)