Skip to content

feat(schema): add UniqueConstraint message and unique_constraints to ContainerSchema#121

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

feat(schema): add UniqueConstraint message and unique_constraints to ContainerSchema#121
steiler wants to merge 1 commit into
mainfrom
feat/yang-unique-constraint

Conversation

@steiler

@steiler steiler commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds `UniqueConstraint` message to `schema.proto` with a single `repeated string elements = 1` field (RFC 7950 § 7.8.3)
  • Adds `repeated UniqueConstraint unique_constraints = 24` to `ContainerSchema` so list nodes carry their `unique` constraint metadata
  • Regenerates `sdcpb/schema.pb.go` with the updated bindings
  • Adds `TestContainerSchema_GetUniqueConstraints` to verify the new getter behaves correctly

Part of the YANG `unique` list constraint enforcement PRD. Downstream repos (`schema-server`, `data-server`) will pin to the tagged release of this branch before their PRs land.

Related

…ContainerSchema

Adds the `UniqueConstraint` protobuf message (RFC 7950 § 7.8.3) and a
`repeated UniqueConstraint unique_constraints = 24` field on `ContainerSchema`.
Regenerates `sdcpb/schema.pb.go`. Adds test coverage for the new getter.

Co-authored-by: Cursor <cursoragent@cursor.com>
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