-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from SchwarzIT/bugfix/create-base-model-for-sc…
…hemas create BaseModels for Schemas
- Loading branch information
Showing
6 changed files
with
125 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
crystal-map-processor/src/test/resources/ExpectedSubSchema.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// DO NOT EDIT THIS FILE. | ||
// Generated using Crystal-Map | ||
// | ||
// Do not edit this class!!!!. | ||
// | ||
package com.kaufland.testModels | ||
|
||
import com.schwarz.crystalapi.schema.CMJsonField | ||
import com.schwarz.crystalapi.schema.CMObjectField | ||
import com.schwarz.crystalapi.schema.Schema | ||
import kotlin.String | ||
|
||
public open class SubSchema( | ||
path: String = "", | ||
) : Schema { | ||
public val DEFAULT_TYPE: String = "sub" | ||
|
||
public val type: CMJsonField<String> = CMJsonField("type", path) | ||
|
||
public val someObject: CMObjectField<TestObjectSchema> = CMObjectField( | ||
com.kaufland.testModels.TestObjectSchema(if (path.isBlank()) "someObject" else | ||
"$path.someObject"), | ||
"someObject", | ||
path, | ||
) | ||
} |