Skip to content

Commit

Permalink
feat: enhance search_facets schema
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopacheco1 committed Apr 4, 2024
1 parent bb0aa96 commit f92c8b4
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/main/openapi/ckan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f92c8b4

Please sign in to comment.