Skip to content

feat(schema): populate unique constraints from YANG list entries#242

Open
steiler wants to merge 1 commit into
mainfrom
feat/yang-unique-constraint
Open

feat(schema): populate unique constraints from YANG list entries#242
steiler wants to merge 1 commit into
mainfrom
feat/yang-unique-constraint

Conversation

@steiler

@steiler steiler commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Parse unique statements from yang.Entry.Extra in list schemas
  • Expose as UniqueConstraint messages on ContainerSchema via unique_constraints field
  • Add test coverage for single-leaf, multi-leaf, and descendant-path unique constraints

Related

Made with Cursor

Parse `unique` statements from yang.Entry.Extra and expose them as
UniqueConstraint messages on ContainerSchema, enabling data-server to
validate YANG unique list constraints.

Co-authored-by: Cursor <cursoragent@cursor.com>
@steiler steiler force-pushed the feat/yang-unique-constraint branch from a10329f to 6dad40d Compare June 5, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant