REST API and enum type in query parameter

Hello,

Sorry for my english.
I have Visual Paradigm 16.3 and I try to modelize a REST API in a class diagram. Then, I generate swagger. Every thing works fine. Nevertheless, I would like to modelize this case in Visual Paradigm:

paths:
/items:
get:
parameters:
- in: query
name: sort
description: Sort order
required: false
schema:
type: string
enum: [asc, desc]

How to specify the enum type for the query parameter in a class diagram?

Thank you in advance for you response.

Best regards,

Olivier

I’m sorry that currently we do not support enum parameter for REST API. We will consider to support this and I’ll keep you post once there any update on it.

Thank you. Do you know when this enhancement will be pushed?

We just released v17.1 today and this release support define enum parameters for REST class. If your license covered from maintenance then you can get this upgrade for free.

enum_parameter