Skip to content

Commit 17a2ab1

Browse files
committed
Fixed indentation
1 parent 9094055 commit 17a2ab1

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/tools/schema2kotlin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class ${name}_Spec() : ${this.getType('EntitySpec')}<${name}> {
308308
${this.opts.wasm ? '' : `\
309309
310310
companion object {
311-
val schema = ${this.leftPad(this.createSchema(schemaHash), 12, true)}
311+
val schema = ${this.leftPad(this.createSchema(schemaHash), 8, true)}
312312
313313
init {
314314
SchemaRegistry.register(schema)

src/tools/tests/goldens/generated-schemas.jvm.kt

+18-18
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ class GoldInternal1_Spec() : EntitySpec<GoldInternal1> {
7474

7575
companion object {
7676
val schema = Schema(
77-
listOf(),
78-
SchemaFields(
79-
singletons = mapOf("val" to FieldType.Text),
80-
collections = emptyMap()
81-
),
82-
"485712110d89359a3e539dac987329cd2649d889"
83-
)
77+
listOf(),
78+
SchemaFields(
79+
singletons = mapOf("val" to FieldType.Text),
80+
collections = emptyMap()
81+
),
82+
"485712110d89359a3e539dac987329cd2649d889"
83+
)
8484

8585
init {
8686
SchemaRegistry.register(schema)
@@ -199,18 +199,18 @@ class Gold_Data_Spec() : EntitySpec<Gold_Data> {
199199

200200
companion object {
201201
val schema = Schema(
202-
listOf(),
203-
SchemaFields(
204-
singletons = mapOf(
205-
"num" to FieldType.Number,
206-
"txt" to FieldType.Text,
207-
"lnk" to FieldType.Text,
208-
"flg" to FieldType.Boolean
209-
),
210-
collections = emptyMap()
202+
listOf(),
203+
SchemaFields(
204+
singletons = mapOf(
205+
"num" to FieldType.Number,
206+
"txt" to FieldType.Text,
207+
"lnk" to FieldType.Text,
208+
"flg" to FieldType.Boolean
211209
),
212-
"d8058d336e472da47b289eafb39733f77eadb111"
213-
)
210+
collections = emptyMap()
211+
),
212+
"d8058d336e472da47b289eafb39733f77eadb111"
213+
)
214214

215215
init {
216216
SchemaRegistry.register(schema)

0 commit comments

Comments
 (0)