|
10 | 10 | public SDK namespaces: |
11 | 11 |
|
12 | 12 | 1. Most tags derive their snake_case attribute and PascalCase class name |
13 | | - automatically — e.g. "Vedic Astrology" -> vedic_astrology / VedicAstrologyDomain, |
| 13 | + automatically, e.g. "Vedic Astrology" -> vedic_astrology / VedicAstrologyDomain, |
14 | 14 | "Numerology" -> numerology / NumerologyDomain, "Languages" -> languages / |
15 | 15 | LanguagesDomain. New tags need NO change here. |
16 | | - 2. A handful of tags use a curated short-form for branding — the public SDK |
| 16 | + 2. A handful of tags use a curated short-form for branding: the public SDK |
17 | 17 | exposes ``roxy.astrology``, not ``roxy.western_astrology``. Those overrides |
18 | 18 | live in NAMESPACE_ALIASES below. |
19 | 19 |
|
@@ -283,13 +283,13 @@ def main() -> None: |
283 | 283 | tag_objects = tag_index(spec) |
284 | 284 | domains = group_by_tag(spec) |
285 | 285 |
|
286 | | - # Warn on stale NAMESPACE_ALIASES — aliases pointing at tags no longer in |
| 286 | + # Warn on stale NAMESPACE_ALIASES: aliases pointing at tags no longer in |
287 | 287 | # the spec. New tags are fine; they auto-derive via tag_to_attr / tag_to_class. |
288 | 288 | spec_tag_names = set(tag_objects) | set(domains) |
289 | 289 | for alias_tag in NAMESPACE_ALIASES: |
290 | 290 | if alias_tag not in spec_tag_names: |
291 | 291 | print( |
292 | | - f"WARNING: NAMESPACE_ALIASES entry '{alias_tag}' is stale — " |
| 292 | + f"WARNING: NAMESPACE_ALIASES entry '{alias_tag}' is stale: " |
293 | 293 | "no such tag in the OpenAPI spec. Remove it from codegen.py." |
294 | 294 | ) |
295 | 295 |
|
|
0 commit comments