Comments (5)
from ebucore.
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.
from ebucore.
@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.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebucore.