Anypoint Best Practices

(14 reviews)

duplicated-entry-in-enum

general > duplicated-entry-in-enum


Guidance / Message

Enum values must be unique.

Examples

valid

types:
  housingType:
    type: string
    enum: [apartment, studio, house]

invalid

types:
  housingType:
    type: string
    enum: [apartment, studio, house, apartment]

Applies to ScalarShape

Constraint

Type: Rego Validation

Reviews

TypeRuleset
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onDec 11, 2023
Asset overview

Asset versions for 1.6.x

Asset versions
VersionActions
1.6.1
1.6.0

Tags