We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd81a5 commit 40a2be6Copy full SHA for 40a2be6
tools/spectral/ipa/rulesets/functions/IPA125OneOfMustHaveDiscriminator.js
@@ -3,7 +3,6 @@ import { resolveObject } from './utils/componentUtils.js';
3
import { hasException } from './utils/exceptions.js';
4
5
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.';
7
const MISSING_DISCRIMINATOR_MESSAGE = 'The schema has oneOf but no discriminator property.';
8
const INVALID_DISCRIMINATOR_MESSAGE = 'Discriminator property is not an object.';
9
const MISSING_PROPERTY_NAME_MESSAGE = 'Discriminator has no propertyName defined.';
0 commit comments