question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Q Raw data of docs for JsonSchema

See original GitHub issue

I want to collect CSS docs and save as JsonSchema like

{
  "border": {"propertyNames": {"enum": ["left","right"]}} 
}

Is somewhere more structured data than HTML values @ client/build/**/index.json ? To not produce weird exporter.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
peterbecommented, Jun 18, 2020

@peterbe Oops, sorry. Can you say which one is correct?

Hehe. I was wrong in saying wrong repo. Sorry. If you want to get structured data out of MDN there are some options:

  1. The Stumptown initiative which is about turning unstructured blobs of documentation (in HTML with macros) into Markdown with structured data. This project might be hard to understand because it’s early stages and a lot of flux.
  2. The browser-compat-data is more about compatibility than anything.
  3. What yari produces is just blobs of text to support the rendering of complete HTML pages. Those index.json are considered implementation details. Not an API. But you can still attempt to use it and do your own post-processing.
0reactions
peterbecommented, Jul 6, 2020

There are sources in content/files/**/index.html files. On disk. And checked into git. The node content build ... command transforms that into index.html and index.json files. These can be found in client/build/**/index.json afterwards. On disk. These are all part of the .gitignore just like any build artifact like client/build/static/**

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started Step-By-Step - JSON Schema
To start a schema definition, let's begin with a basic JSON schema. We start with four properties called keywords which are expressed as...
Read more >
JSON Schema | The home of JSON Schema
JSON Schema is a declarative language that allows you to annotate and validate JSON documents. JSON Schema enables the confident and reliable use...
Read more >
Understanding JSON Schema 2020-12 documentation
JSON Schema is a powerful tool for validating the structure of JSON data. ... tools that allow you to run your own JSON...
Read more >
A Vocabulary for Structural Validation of JSON - JSON Schema
JSON Schema (application/schema+json) has several purposes, one of which is JSON instance validation. This document specifies a vocabulary for JSON Schema ...
Read more >
A Media Type for Describing JSON Documents - JSON Schema
JSON Schema defines the media type "application/schema+json", a JSON-based format for describing the structure of JSON data. JSON Schema asserts what a JSON ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found