canonical / canonical/cloud-init

[enhancement]: Relocate json schemas somewhere more sensible

Open
#4,688 6 comments 2 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

# Enhancement

All of our jsonschemas are hidden down under `cloudinit/config/schemas/`, which doesn't make sense:

a) these files contain data not Python code
b) some of these files are not specific to configuration modules
c) the `__init__.py` was never required

These file should exist in a directory under the top directory, probably named something like `schema` (alternatively `jsonschema` or maybe something more generic like `data`).

Expected changes:
- code in cloudinit/, specifically schema.py
- test/unittest/
- `setup.py`
- possibly distro packaging too (presumably avoidable with setup.py finesse)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.