Giter Site home page Giter Site logo

Comments (5)

JPEvain avatar JPEvain commented on August 15, 2024

from ebucore.

keithlayne avatar keithlayne commented on August 15, 2024

Thanks for replying so quickly!

I looked through the mediainfo source and it appeared that the JSON output matches the XML very closely. This may be a case where the XSD->JSON schema tooling (there's not much) might be able to succeed with a simple mapping.

I don't think JSON schema is actually standardized (still), but it seems widely used with pretty mature tooling across languages. In my current project I'm targeting TypeScript, which has good tooling for (at least) code generation from JSON Schema.

I did see the use of arrays and was not sure of the semantics there. I guess what I really need to do is to dig into the XSD to answer questions like that. I'm not familiar enough with the spec to know what to expect.

For example, I looked at output of a previous version of mediainfo (not sure which EBUCore version it supported) for a video file, and the structure was much more flat, i.e. no arrays. I guess what's not currently clear at the moment (and probably is answered by the XSD) is whether or not those arrays are intended to represet zero-or-one, zero-or-many, or one-or-many. Hopefully that makes sense.

from ebucore.

JPEvain avatar JPEvain commented on August 15, 2024

from ebucore.

jstarpl avatar jstarpl commented on August 15, 2024

@keithlayne Hey, did you progress on the EBUCore JSON schema? I'd also like to use EBUCore in a JSON/TypeScript environment and I'm wondering if there's something existing work to take advantage of.

from ebucore.

keithlayne avatar keithlayne commented on August 15, 2024

@jstarpl I am just validating the fields that I depend on. Probably a good candidate for runtime types, e.g. zod/runtypes/io-ts. Supporting the full ebucore format seems like too much work without automation.

from ebucore.

Related Issues (3)

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.