cisco nprod logo
  • Home
Cookie Preferences
Login
Assets list

Pages
Home
Go to page info-contact
Go to page info-description
Go to page openapi-tags
Go to page operation-default-response
Go to page operation-description
Go to page operation-operationId
Go to page operation-operationId-hyphen-case
Go to page operation-singular-tag
Go to page operation-tag-defined
Go to page operation-tags
Go to page tag-description
Go to page api-must-have-title
Go to page duplicated-entry-in-enum
Go to page standard-delete-status-codes
Go to page standard-get-status-codes
Go to page standard-post-status-codes
Go to page standard-put-status-codes
Go to page provide-examples
Go to page resource-use-lowercase

CISCO API Ruleset

1.0.x
(0 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