-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ikc 208 json registry support #254
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dlaczego zmiana enuma z JSON_SCHEMA na JSON?
@matty-matt bo: |
} | ||
|
||
@Test | ||
public void should_deserialize_without_schema() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tak w zasadzie to po co jest ten test i dwa kolejne? Widzę, że są one też w klaskach do deserializacji dla avro i protobuf. Różnią się czymś między sobą? Może warto by było je gdzieś wydzielić albo zostawić tylko w jednej klasie?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
też zastanawiałem się żeby zrobić jedną klasę, która miałaby wydzielone wspólne rzeczy i wtedy każda by dziedziczyła od niej, to może tak zrobię
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bardziej myślałem żeby te dwa czy trzy testy do osobnej klasy przerzucić
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, wydzieliłem te bez scheme'y do dwóch osobnych klasek (ser/des)
...cil-backend/src/test/java/com/consdata/kouncil/serde/JsonSchemaSerializationServiceTest.java
Outdated
Show resolved
Hide resolved
assertThat(deserializedMessage.getValueData().getMessageFormat()).isNull(); | ||
} | ||
|
||
private ConsumerRecord<Bytes, Bytes> prepareConsumerRecord(Bytes key, Bytes value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Może jescze to do jakiegoś utila? Czy to już przesada, co myślisz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
też mi to się rzuciło i początkowo chciałem wydzielić, ale to tak naprawdę tylko tworzenie obiektu, nie wiem czy ma sens robić oddzielny util pod to, chociaż z drugiej strony sporo linii kodu zajmuje xd, hm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zrobiłem i jakoś średnio mi podoba xd, więc chyba zostawię jak jest obecnie bez wydzielenia tego
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
No description provided.