Revamp the `conda/schemas` repository
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- json, python
- Domain
- documentation, testing, tooling
Research direction
Start by reading CEPs #51, #8, and #50, then inspect the existing conda/schemas repository and its undocumented models. Compare the proposed examples/, schemas/, models/, scripts/, and tests/ layout with current standards and Pydantic’s intended role. Done requires a steering-team decision on scope and repository structure before implementation can be defined.
Written by the indexing model from the issue text.
Description
Note: I was going to post this in
conda/schemasdirectly but I can't tag the steering team from there, hence the issue here.
We have a few CEPs coming up (see #51 #8 #50) where it has been suggested that we document the proposed standards with an accompanying JSON schema in the conda/schemas repo.
As I start writing some of these schemas down, I will be using pydantic to write reusable models that can auto export JSON documents. I wonder if there's an interest in doing this retroactively for existing models that have not been standardized yet, so if this catches up, I'd like to propose the following repository structure:
examples/: Real-life examples of the documented file types, that can be used in test suites if necessary.schemas/: Publishable JSON schema documents.models/:Python scripts that generate JSON schemas intoschemas/. Most likely usingpydantic.scripts/: Other helper utilities (e.g. refresh all JSON schemas from their models, publish to a HTML tree, etc).tests/: Automations to make sure the proposed models actually implement the existing "standards" (as inexamples/), but also reject non-compliant files (e.g. extra keys due to typos).
Eventually I can foresee how the models directory becomes a collection of well structured modules with no extra dependencies (other than Pydantic) that would be best served as an importable Python package. Downstream packages (maybe including conda!) could benefit from using these models to transparently add typing their code paths, or at least compare their custom implementations to accepted community standards in their test suites.
I'd love to hear thoughts from @conda-incubator/steering! Thanks!
- Dominant language
- No language data
- Stars
- 35
- Forks
- 43
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conda/ceps
-
Difficulty 2/5 1-3 hours Newbie friendliness 54/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 Half a day Newbie friendliness 28/100
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
italia/eid-wallet-it-docs#1288 · 1 comment ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jonathanong/no-mistakes#5490 ·
-
15.0
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day