TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

JSON Schema Store

278 点作者 WallyFunk将近 2 年前

17 条评论

JodieBenitez将近 2 年前
Lots of comments here about XML vs. JSON... but there are areas where these two don&#x27;t collide. I&#x27;m thinking about text&#x2F;document encoding (real annotated text, things like books, etc).<p>Even though XML is still king here (see TEI and other norms), some of its limitations are a problem. Consider the following text:<p><pre><code> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </code></pre> Now say you want to qualify a part of it:<p><pre><code> Lorem ipsum &lt;sometag&gt;dolor sit amet&lt;&#x2F;sometag&gt;, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </code></pre> Now say you want to qualify another part, but it&#x27;s overlapping with previous part:<p><pre><code> Lorem ipsum &lt;sometag&gt;dolor sit &lt;someothertag&gt;amet&lt;&#x2F;sometag&gt;, consectetur&lt;&#x2F;someothertag&gt; adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </code></pre> Of course, this is illegal XML... so we have to do dirty hacks like this:<p><pre><code> Lorem ipsum &lt;start someid=&quot;part1&quot;&#x2F;&gt;dolor sit &lt;start someid=&quot;part2&quot;&#x2F;&gt;amet&lt;end someid=&quot;part1&quot;&#x2F;&gt;, consectetur&lt;end someid=&quot;part2&quot;&gt; adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </code></pre> Which means rather inefficient queries afterwards :-&#x2F;
评论 #37209377 未加载
评论 #37208703 未加载
评论 #37207169 未加载
评论 #37208639 未加载
评论 #37210951 未加载
thomasfromcdnjs将近 2 年前
JSON Resume uses a defined schema. (listed on schemastore.org)<p>It has made writing resumes with co pilot super powerful.
评论 #37205225 未加载
评论 #37207902 未加载
ChrisArchitect将近 2 年前
(2020)?<p>Some previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23988269">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23988269</a>
seanp2k2将近 2 年前
JSON is the version of XML we deserve.
评论 #37205675 未加载
评论 #37206560 未加载
评论 #37207038 未加载
评论 #37204456 未加载
jhoechtl将近 2 年前
IS there an on-premise alternative? Not necessarily speaking of schemastore.org on prem but a service comparable in spirit.
评论 #37207526 未加载
relequestual将近 2 年前
We (JSON Schema) did a case study&#x2F;interview with the guy behind it <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-yYTxLZZk58&amp;list=PLHVhS4Tj1YZOrrvl7_a9LaBAtst7BWH8a&amp;index=3">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=-yYTxLZZk58&amp;list=PLHVhS4Tj1Y...</a>
osigurdson将近 2 年前
It is interesting that people love json (now with schema), but hate XML while loving HTML at the same time. It is all pretty boring and largely the same imo.
评论 #37205698 未加载
评论 #37205943 未加载
评论 #37205822 未加载
评论 #37206568 未加载
评论 #37205853 未加载
评论 #37207247 未加载
评论 #37206861 未加载
neverrroot将近 2 年前
A repository of over 700 JSON schemas for various file types. Quite useful.
评论 #37209607 未加载
yawnxyz将近 2 年前
Took me an embarrassingly long time to figure out you could scroll that list
评论 #37206545 未加载
评论 #37204336 未加载
评论 #37207029 未加载
andenacitelli将近 2 年前
JSON Schemas are great.<p>These are actually what IntelliJ uses to validate all sorts of config files behind the scenes.<p>For work, we even do code generation off of the Meltano (ETL tool) spec and use it to validate reads and writes to the file (which we edit at application runtime) to catch errors as close to when they actually occur.
mooreed将近 2 年前
Does anyone know of a typescript translation for each of those validation models?<p>Or maybe even a way to discover related statically typed definitions based on the validation rules?<p>It would be really nice to not define parts of a data model that provide little to no business value - but where you can easily “stub your toe”.
评论 #37204703 未加载
评论 #37208748 未加载
评论 #37204585 未加载
评论 #37205056 未加载
zurn将近 2 年前
There are some YAML based schemas there too. How does this work, is there a canonical YAML-&gt;JSON transformation, or does JSON schema spec have explicit YAML support?<p>edit: skipping the theoretical foundations, there seems to be at least this tool that claims to validate yaml against json schema: <a href="https:&#x2F;&#x2F;github.com&#x2F;json-schema-everywhere&#x2F;pajv">https:&#x2F;&#x2F;github.com&#x2F;json-schema-everywhere&#x2F;pajv</a>
评论 #37208534 未加载
andirk将近 2 年前
Does this have any relation to <a href="https:&#x2F;&#x2F;jsonapi.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;jsonapi.org&#x2F;</a> ?
评论 #37206530 未加载
LispSporks22将近 2 年前
Heh I remember we did similar registry for XML things.
评论 #37206814 未加载
osigurdson将近 2 年前
See, Steve Ballmer was right after all.
albert_e将近 2 年前
can JSON achema be used to describe say the schema of a RDBMS table?<p>is these some standardization here so I might use a JSON schema that already covers a lot of the fields that are needed to describe columns, constraints etc?<p>can JSON schema capture relations between fields?
评论 #37209807 未加载
albert_e将近 2 年前
is there a good tool or library to create a JSON Schema manually&#x2F;programmatically ?
评论 #37215775 未加载
评论 #37219469 未加载
评论 #37225076 未加载