From f92c8b4e0b20610d5b183307c77adef5a8ebb09f Mon Sep 17 00:00:00 2001 From: Bruno Pacheco Date: Thu, 4 Apr 2024 23:41:15 +0200 Subject: [PATCH] feat: enhance search_facets schema --- src/main/openapi/ckan.yaml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/src/main/openapi/ckan.yaml b/src/main/openapi/ckan.yaml index 0d0c92a..77ef3f2 100644 --- a/src/main/openapi/ckan.yaml +++ b/src/main/openapi/ckan.yaml @@ -99,15 +99,33 @@ components: type: array items: $ref: "#/components/schemas/CkanPackage" - facets: + search_facets: type: object additionalProperties: - $ref: "#/components/schemas/CkanFacetCounts" - description: Aggregated information about facet counts - CkanFacetCounts: + $ref: "#/components/schemas/CkanFacet" + description: Aggregated information about facet + CkanFacet: type: object - additionalProperties: - type: integer + properties: + title: + type: string + items: + type: array + items: + $ref: "#/components/schemas/CkanFacetItem" + CkanFacetItem: + type: object + properties: + name: + type: string + display_name: + type: string + count: + type: integer + required: + - name + - display_name + - count CkanPackage: type: object properties: