Comments (4)
I discussed and gave a link to a schema in discord that I improved upon the link @martinjagodic linked above. Here is the file on github I used for a validator test I did in Rust (not relevant to the conversation). It might be a more complete schema than the one linked.
https://github.com/talves/json-schema-validator-example/blob/main/schema.json
Here is a link to a visualizer of the json: https://json-schema.app/view/%23?url=https%3A%2F%2Fraw.githubusercontent.com%2Ftalves%2Fjson-schema-validator-example%2Fmain%2Fschema.json
Note: This json schema follows draft 2020-12 which is the newest and not supported by a lot of online validators.
from decap-cms.
@FractalHQ there is room for improvement here for sure. This has been mentioned a few times recently on Discord and here.
Before anyone can start improving this there has to be a clear idea of what we want in this feature. So at this point, I ask you to define your idea in more detail and provide some examples.
Some resources:
schema: https://www.oxygenxml.com/samples/json-schema-documentation/netlify/oneFile/Netlify.html
advanced yaml (I use aliases all the time): https://www.educative.io/blog/advanced-yaml-syntax-cheatsheet
from decap-cms.
Thanks for the links @martinjagodic!
Is there a json
file of that schema you linked in that html
file? I could generate a typescript interface from json, and even provide the json schema to the YAML VSCode extension to solve the problem directly -- I'm hoping we can get autocomplete / intellisense based on the schema json directly in the config.yml
file without any extra steps.
from decap-cms.
@talves you're a legend!! Giving that json file to the YAML extension is such a huge instant win 🥳
from decap-cms.
Related Issues (20)
- Move website to it's own repo
- Mandatory Alt Text Field in Image and Markdown Widgets
- Selecting an item from the media gallery is not keyboard accessible and has no role or state HOT 2
- NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child o... HOT 1
- CMS crashes after showing this message: "Decap CMS is adding labels to 2 of your Editorial Workflow entries." HOT 3
- Preview pane scrolling in the Safari browser
- [i18n] duplicate boolean field is not reactive HOT 8
- Trying to hide time-picker from datetime-widget with "time_format: false" does not work. HOT 1
- UI issue: Color picker as last in array of fields = unscrollable
- Gitlab PKCE auth error on Decap 3.1 HOT 2
- meta: path should allow for blank paths upon publishing...fallback to path:
- Netlify Identity not using custom email templates HOT 1
- Images not loading in editor HOT 1
- "The redirect URI included is not valid" on GitLab HOT 6
- Specifying a default publish_mode value
- NotFoundError: Node.removeChild: The node to be removed is not a child of this node HOT 2
- NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child o... HOT 2
- Integrating Compressor.js for image uploading optimization HOT 2
- Use GitHub Apps instead of OAuth for the GitHub Backend
- Unable to create custom formatter: TypeError: r.getIn is not a function
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 decap-cms.