Skip to content

Commit 429ac18

Browse files
committed
test(web): refresh the openapi snapshot for the attribute facets
The committed snapshot predates the facetable attribute list and the attribute query parameters of the search, so the snapshot integration test failed on main. Refreshed with -PrefreshOpenApiSnapshot. Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
1 parent 5ddf827 commit 429ac18

1 file changed

Lines changed: 77 additions & 1 deletion

File tree

‎docs/openapi/ingot-openapi.json‎

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,30 @@
862862
"required" : [ "value", "count" ],
863863
"type" : "object"
864864
},
865+
"FacetableAttribute" : {
866+
"properties" : {
867+
"key" : {
868+
"type" : "string"
869+
},
870+
"label" : {
871+
"type" : "string"
872+
}
873+
},
874+
"required" : [ "key", "label" ],
875+
"type" : "object"
876+
},
877+
"FacetableAttributesResponse" : {
878+
"properties" : {
879+
"attributes" : {
880+
"items" : {
881+
"$ref" : "#/components/schemas/FacetableAttribute"
882+
},
883+
"type" : "array"
884+
}
885+
},
886+
"required" : [ "attributes" ],
887+
"type" : "object"
888+
},
865889
"FactorCountsDto" : {
866890
"properties" : {
867891
"authenticator" : {
@@ -2443,6 +2467,15 @@
24432467
},
24442468
"SearchFacets" : {
24452469
"properties" : {
2470+
"attributes" : {
2471+
"additionalProperties" : {
2472+
"items" : {
2473+
"$ref" : "#/components/schemas/FacetBucket"
2474+
},
2475+
"type" : "array"
2476+
},
2477+
"type" : [ "object", "null" ]
2478+
},
24462479
"classifier" : {
24472480
"items" : {
24482481
"$ref" : "#/components/schemas/FacetBucket"
@@ -6488,6 +6521,27 @@
64886521
"schema" : {
64896522
"type" : "string"
64906523
}
6524+
}, {
6525+
"description" : "key:value filter on a declared filterable attribute, repeatable; an OR within a key, an AND across keys. At most 4 keys and 16 values per key.",
6526+
"in" : "query",
6527+
"name" : "attribute",
6528+
"schema" : {
6529+
"type" : "string"
6530+
}
6531+
}, {
6532+
"description" : "key:asc or key:desc, sorts by one declared sortable attribute; rows without a value sort last",
6533+
"in" : "query",
6534+
"name" : "attributeSort",
6535+
"schema" : {
6536+
"type" : "string"
6537+
}
6538+
}, {
6539+
"description" : "Comma-separated declared facetable attribute keys to count, at most 8",
6540+
"in" : "query",
6541+
"name" : "attributeFacets",
6542+
"schema" : {
6543+
"type" : "string"
6544+
}
64916545
} ],
64926546
"responses" : {
64936547
"200" : {
@@ -6501,7 +6555,7 @@
65016555
"description" : "OK"
65026556
},
65036557
"400" : {
6504-
"description" : "Invalid parameter or result window exceeded. The message names the parameter."
6558+
"description" : "Invalid parameter or result window exceeded. The message names the parameter. An attribute that is not declared for its use has the problem type urn:ingot:problem:undeclared-attribute, a feature the search backend does not support urn:ingot:problem:unsupported-search-capability."
65056559
},
65066560
"404" : {
65076561
"description" : "Search is turned off on this instance"
@@ -6514,6 +6568,28 @@
65146568
"tags" : [ "Search" ]
65156569
}
65166570
},
6571+
"/api/maven/search/attributes/facetable" : {
6572+
"get" : {
6573+
"description" : "The keys that an artifact enricher declared facetable, each with its label, ordered by key. The list is built from the declarations only: no search backend is asked and no attribute value is read. It is empty when no enricher declares a facetable key.",
6574+
"responses" : {
6575+
"200" : {
6576+
"content" : {
6577+
"application/json" : {
6578+
"schema" : {
6579+
"$ref" : "#/components/schemas/FacetableAttributesResponse"
6580+
}
6581+
}
6582+
},
6583+
"description" : "OK"
6584+
},
6585+
"404" : {
6586+
"description" : "Search is turned off on this instance"
6587+
}
6588+
},
6589+
"summary" : "List the attribute keys a search can count",
6590+
"tags" : [ "Search" ]
6591+
}
6592+
},
65176593
"/api/maven/search/files" : {
65186594
"get" : {
65196595
"description" : "The stored files of one GAV, ordered by path. The coordinates are required and compared case-insensitively. The access rules of the search apply: files the caller may not browse are not listed.",

0 commit comments

Comments
 (0)