Giter Club home page Giter Club logo

Comments (8)

alesj avatar alesj commented on June 1, 2024

@EricWittmann well, this is no a bug ... it's a misconfiguration between server and client json Date serializers ...

It looks like Jackson JSON DateSerializer uses longs ...

  • For efficiency, we will serialize Dates as longs, instead of
  • potentially more readable Strings.

... where as Yasson expects Date in string format ... ?

Since the user can control its client easier the (s)he can control server,
I would say it's on the user/client to match server's configuration.

from apicurio-registry.

jpechane avatar jpechane commented on June 1, 2024

@alesj Well, but if I deploy the converter into Kafka Connect, how can I configure it so it matches the server?

from apicurio-registry.

alesj avatar alesj commented on June 1, 2024

@jpechane Hmm ... I would guess there must be a way to config this stuff ...
Otoh, @EricWittmann @jsenko wdyt if we changed this createdOn, etc to plain timestamp ourselves -- pure long ... that way it would be solved for all ...

from apicurio-registry.

jpechane avatar jpechane commented on June 1, 2024

@alesj The only way I've found is adding annotation to the offending fields - in this case the mapping would be unambiguous

from apicurio-registry.

alesj avatar alesj commented on June 1, 2024

Like I wrote, I think we can easily change this to plain long timestamp, as I think for us it's not that important that that is a Date instance. It's just an informative field / value ...

from apicurio-registry.

EricWittmann avatar EricWittmann commented on June 1, 2024

+1 to changing to Timestamp if that fixes this issue. I don't much care whether it's a Date or a Timestamp. Are there any storage layer consequences to doing that?

from apicurio-registry.

alesj avatar alesj commented on June 1, 2024

Are there any storage layer consequences to doing that?

Doesn't look like it ...

from apicurio-registry.

EricWittmann avatar EricWittmann commented on June 1, 2024

Fixed by #240

from apicurio-registry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.