Don't submit schemaType when creating a new schema. It's made for backward compatibility with its API

This commit is contained in:
Ildar Almakaev 2021-03-04 16:44:20 +03:00
parent a617a09bc5
commit b3a3d965b3

View file

@ -1,16 +1,13 @@
package com.provectus.kafka.ui.cluster.model.schemaregistry;
import com.provectus.kafka.ui.model.NewSchemaSubject;
import com.provectus.kafka.ui.model.SchemaType;
import lombok.Data;
@Data
public class InternalNewSchema {
private String schema;
private SchemaType schemaType;
public InternalNewSchema(NewSchemaSubject schemaSubject) {
this.schema = schemaSubject.getSchema();
this.schemaType = schemaSubject.getSchemaType();
}
}