Skip to content

Commit 1c3cd5d

Browse files
committed
Fixed additional bug in validation in derived types
1 parent fcaf168 commit 1c3cd5d

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The format is based on [Keep a Changelog](http://keepachangelog.com/).
44

5+
## [0.79] - 2022-06-16
6+
### Changed
7+
- `CodeGenerator`: fixed additional bug in validation in derived types
8+
59
## [0.78] - 2022-06-13
610
### Added
711
- `ValidationValue`: marker interface for values used in validations

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,25 +253,25 @@ operation:
253253

254254
## Dependency Specification
255255

256-
The latest version of the library is 0.78, and it may be obtained from the Maven Central repository.
256+
The latest version of the library is 0.79, and it may be obtained from the Maven Central repository.
257257

258258
### Maven
259259
```xml
260260
<dependency>
261261
<groupId>net.pwall.json</groupId>
262262
<artifactId>json-kotlin-schema-codegen</artifactId>
263-
<version>0.78</version>
263+
<version>0.79</version>
264264
</dependency>
265265
```
266266
### Gradle
267267
```groovy
268-
implementation 'net.pwall.json:json-kotlin-schema-codegen:0.78'
268+
implementation 'net.pwall.json:json-kotlin-schema-codegen:0.79'
269269
```
270270
### Gradle (kts)
271271
```kotlin
272-
implementation("net.pwall.json:json-kotlin-schema-codegen:0.78")
272+
implementation("net.pwall.json:json-kotlin-schema-codegen:0.79")
273273
```
274274

275275
Peter Wall
276276

277-
2022-06-13
277+
2022-06-16

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>net.pwall.json</groupId>
77
<artifactId>json-kotlin-schema-codegen</artifactId>
8-
<version>0.78</version>
8+
<version>0.79</version>
99
<name>JSON Schema Code Generation</name>
1010
<description>Code generation from JSON Schema to Kotlin or Java</description>
1111
<packaging>jar</packaging>

src/main/kotlin/net/pwall/json/schema/codegen/CodeGenerator.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ class CodeGenerator(
845845
baseConstraints.localTypeName, baseConstraints.enumValues))
846846
validationsPresent = true
847847
}
848+
baseConstraints.isLocalType -> {}
848849
baseConstraints.isString -> {
849850
if (property.processAdditionalConstraintsString(baseConstraints, target))
850851
validationsPresent = true

0 commit comments

Comments
 (0)