Skip to content

Add debug logging when $ref is not found in _REF_MAP #14

@mgoldsborough

Description

@mgoldsborough

In schema.py, _apply_property_defaults resolves $ref URIs via a hardcoded _REF_MAP dict. If a $ref isn't in the map, it's silently skipped — no log, no warning.

Today there's only one entry (upjack-entity.schema.json), so this isn't a problem yet. But as schemas grow and new $ref targets appear, a missing entry would cause hydrate_defaults to silently skip fields, which is hard to debug.

What to do:

  • Add a logger.debug() call when a $ref is encountered but not found in _REF_MAP
  • Consider whether _REF_MAP should be auto-populated from the schema registry instead of hardcoded

Found during QA review of feat/schema-evolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions