From 98008d3172d16239c4a154a130b21f2401c94d37 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Mon, 23 Feb 2026 13:16:06 +0700 Subject: [PATCH] docs: regenerate bundled OpenAPI spec --- public/api-docs.bundled.yaml | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/public/api-docs.bundled.yaml b/public/api-docs.bundled.yaml index 9eb5b25..2fb2d0a 100644 --- a/public/api-docs.bundled.yaml +++ b/public/api-docs.bundled.yaml @@ -2963,7 +2963,7 @@ paths: tags: - ValueSets summary: List lib value sets - description: List all library/system value sets from JSON files with item counts. Returns an object where keys are value set names and values are item counts. + description: List all library/system value sets from JSON files with item counts. Returns an array of objects with value, label, and count properties. security: - bearerAuth: [] parameters: @@ -2971,7 +2971,7 @@ paths: in: query schema: type: string - description: Optional search term to filter value set names + description: Optional search term to filter value set names or labels responses: '200': description: List of lib value sets with item counts @@ -2984,14 +2984,19 @@ paths: type: string example: success data: - type: object - additionalProperties: - type: integer - description: Number of items in each value set + type: array + items: + $ref: '#/components/schemas/ValueSetListItem' example: - sex: 3 - marital_status: 6 - order_status: 6 + - value: sex + label: Sex + count: 3 + - value: marital_status + label: Marital Status + count: 6 + - value: order_status + label: Order Status + count: 6 /api/valueset/{key}: get: tags: @@ -4896,3 +4901,16 @@ components: type: string format: date-time description: Occupation display text + ValueSetListItem: + type: object + description: Library/system value set summary (from JSON files) + properties: + value: + type: string + description: The value set key/name + label: + type: string + description: The display name/label + count: + type: integer + description: Number of items in this value set