-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal #1
Comments
something to take a look at: https://www.schemastore.org/json/ |
DIF just started a Credential Schema initiative to host community schemas of all kinds, so we could take advantage of that. |
The trust framework will be responsible for hosting schemas within its domain, like the KCC schemas. Similarly, when tbDEX is moved out from TBDs control the schemas will be hosted there--probably through whatever becomes of the tbdex.io site. I have no problem starting with this proposal with the understanding that schemas will move when those things get figured out |
@csuwildcat, nice! do you have a link that explains how it works |
@csuwildcat would also be curious how soon this would be live if its a new initiative. In other words, is it available today/next 2 weeks or something we might consider a few months from now? |
@mistermoe presumably the intent behind requiring the |
The DIF thing is basically a schema registry, which can catalog schemas that aren't necessarily under its domain. |
@frankhinek correct! no other intentions behind the requirements |
@csuwildcat seems like its specific to just credentials. Have you heard that it's intent is to go beyond credential schemas? |
I don't see a problem with replicating our credential schemas to DIF, though I believe the associated projects should be the source of truth (whether its the protocol, the trust framework, etc.). |
Yeah I'm not concerned about replicating. Moreso just trying to figure out whether @csuwildcat is suggesting we use DIF's offering as a wholesale alternative to the proposal here. |
Problem Statement
Many projects at TBD leverage json schemas. There's two primary use-cases:
protocols and open standards (e.g. tbdex, kcc, dwn etc.) use json schemas to define the structure and expected types of data models. These schemas are then used across many languages to validate said data.
JSON schemas can be used to provide intellisense and validation in IDEs like VSCode for configuration files (e.g. FTL toml files, helm chart templates etc.)
We've run into the following problems in our use of json schemas:
Proposal
I'm proposing a single open source github repo that we can use to house and/or mirror all json schemas that we maintain across projects. We would then host this repo via github pages with a custom domain
Directory structure
The
schemas
repo would have the following directory structure:Example
Each namespace is a project, standard, or protocol that we maintain schemas for. Each namespace would have a directory for each version respective schemas.
Important
these namespace directories can also be git submodules for projects that want to maintain their schemas within their own repos. These repos MUST include a
just schemas
command that will output the expected directory structure into a.schemas
directory in the root of the submodule.Note
there is no mandated versioning scheme.
hosted
The
hosted
directory is the artifact that is created via a github action and hosted on github pages. This directory will also contain anindex.html
file that acts as a landing page and index for all namespaces.Implementation Plan
.schemas/
directory tbdex#352tbdex
andkcc
submodules #7index.html
for visual landing page #4schemas.host
custom domain #5The text was updated successfully, but these errors were encountered: