Skip to content

Comments

feat(srg): Removes MaxItems, and API errors in the resource keep violation paths#988

Merged
d0weinberger merged 1 commit intomainfrom
feat/srg-schema-update
Feb 19, 2026
Merged

feat(srg): Removes MaxItems, and API errors in the resource keep violation paths#988
d0weinberger merged 1 commit intomainfrom
feat/srg-schema-update

Conversation

@d0weinberger
Copy link
Collaborator

Why this PR?

We want the API to validate the number of links.

What has changed?

MaxItems: 5 is removed again from the links collection and API errors will contain the violation path, i.e. the path in the JSON payload which violates constraints.

How does it do it?

Example:
image

How is it tested?

E2E tests are in place and work

How does it affect users?

They will see a better error message, but it will not appear in plan, only in apply.

Issue: CA-17812

@d0weinberger d0weinberger changed the title feat(srg): Removes MaxItems and API errors in the resource keep violation paths feat(srg): Removes MaxItems, and API errors in the resource keep violation paths Feb 19, 2026
@d0weinberger d0weinberger merged commit 310e760 into main Feb 19, 2026
25 of 26 checks passed
@d0weinberger d0weinberger deleted the feat/srg-schema-update branch February 19, 2026 13:00
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.

3 participants