canonical/cloud-init

[enhancement]: Relocate json schemas somewhere more sensible

开放

#4,688 创建于 2023年12月13日

 (6 条评论) (2 个反应) (0 位负责人)Python (1,108 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (3,772 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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)

贡献者指南