Skip to content

Commit

Permalink
add ExpectedSchema File for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jansigi committed Apr 4, 2024
1 parent 44caf95 commit 0594fa4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions crystal-map-processor/src/test/resources/ExpectedSchema.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// DO NOT EDIT THIS FILE.
// Generated using Crystal-Map
//
// Do not edit this class!!!!.
//
package com.kaufland.testModels

import com.schwarz.crystalapi.schema.CMField
import com.schwarz.crystalapi.schema.CMList
import com.schwarz.crystalapi.schema.CMObject
import com.schwarz.crystalapi.schema.CMObjectList
import com.schwarz.crystalapi.schema.Schema
import kotlin.Number
import kotlin.String

open class SubSchema(
path: String = ""
) : Schema {
val DEFAULT_TYPE: String = "test"

val type: CMField<String> = CMField("type", path)

val test_test_test: CMField<Number> = CMField("test_test_test", path)

val list: CMList<String> = CMList("list", path)

val someObject: CMObject<TestObjectSchema> = CMObject(
com.kaufland.testModels.TestObjectSchema(if (path.isBlank()) "someObject" else
"$path.someObject"),
path,
)

val objects: CMObjectList<TestObjectSchema> = CMObjectList(
com.kaufland.testModels.TestObjectSchema(if (path.isBlank()) "objects" else
"$path.objects"),
"objects",
path,
)
}

0 comments on commit 0594fa4

Please sign in to comment.