Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [] Add target field validation #731

Closed
wants to merge 1 commit into from
Closed

Conversation

colomolo
Copy link
Contributor

@colomolo colomolo commented Nov 1, 2024

No description provided.

@colomolo colomolo requested a review from a team November 1, 2024 15:50
@@ -111,6 +108,10 @@ export class EntityLinkAssertion<
const $ = new ObjectAssertion(data, path);

if ($.object('target')) {
const target$ = new ObjectAssertion(data.target, path.of('target'));

target$.noAdditionalProperties(['sys']);
Copy link
Member

@z0al z0al Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a test?

@colomolo colomolo closed this Nov 18, 2024
@colomolo colomolo deleted the fix-validations branch November 18, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants