This repository was archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Support for Enums #58
Copy link
Copy link
Open
Description
Is your feature request related to a problem? Please describe.
It looks like my RAML 1.0 spec is getting ignored on declarations like:
#%RAML 1.0 DataType
displayName: Citizenship Type
description: Applicant's citizenship information.
type: object
additionalProperties: false
properties:
type:
type: string
enum: [CADN, DIPL, INTD, LIMM, MIPE, PERM, REFG, STUV, UNKN, VIST, WRKP]
description: Visa type code
example: "STUV"
The generated class Visa has no enums.
Describe the solution you'd like
The generated class Visa should have a public class called TypeEnum with the enumerated values of the types declared in the RAML.
Describe alternatives you've considered
For now, I'm able to work around it, but the Enum support would be fantastic, since the RAML specs defines that the values MUST match with one of the enum values to be valid.
Metadata
Metadata
Assignees
Labels
No labels