Skip to content

Commit bbedd7d

Browse files
committed
Assert validation against virtual model version
1 parent 69f80a8 commit bbedd7d

File tree

1 file changed

+5
-0
lines changed
  • packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers

1 file changed

+5
-0
lines changed

packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/helpers/validation.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ describe('Saved Objects type validation helper', () => {
8080
});
8181

8282
it('should fail validation against invalid objects when version requested does not support a field', () => {
83+
helper = new ValidationHelper({
84+
logger,
85+
registry: typeRegistry,
86+
kibanaVersion: defaultVersion,
87+
});
8388
const validationError = new Error(
8489
'[attributes.count]: definition for this key is missing: Bad Request'
8590
);

0 commit comments

Comments
 (0)