Skip to content

Commit 40a2be6

Browse files
committed
fix: more specific errors
1 parent 7cd81a5 commit 40a2be6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/spectral/ipa/rulesets/functions/IPA125OneOfMustHaveDiscriminator.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { resolveObject } from './utils/componentUtils.js';
33
import { hasException } from './utils/exceptions.js';
44

55
const RULE_NAME = 'xgen-IPA-125-oneOf-must-have-discriminator';
6-
const GENERIC_ERROR_MESSAGE = 'Each oneOf property must include a discriminator property to define the exact type.';
76
const MISSING_DISCRIMINATOR_MESSAGE = 'The schema has oneOf but no discriminator property.';
87
const INVALID_DISCRIMINATOR_MESSAGE = 'Discriminator property is not an object.';
98
const MISSING_PROPERTY_NAME_MESSAGE = 'Discriminator has no propertyName defined.';

0 commit comments

Comments
 (0)