Skip to content

Commit a77f000

Browse files
Commit via running: make Sources/search
1 parent 83356df commit a77f000

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

Sources/search/Client.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,6 @@ public struct Client: APIProtocol {
393393
name: "advanced_search",
394394
value: input.query.advancedSearch
395395
)
396-
try converter.setQueryItemAsURI(
397-
in: &request,
398-
style: .form,
399-
explode: true,
400-
name: "search_type",
401-
value: input.query.searchType
402-
)
403396
converter.setAcceptHeader(
404397
in: &request.headerFields,
405398
contentTypes: input.headers.accept

Sources/search/Types.swift

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5255,12 +5255,6 @@ public enum Components {
52555255
///
52565256
/// - Remark: Generated from `#/components/parameters/issues-advanced-search`.
52575257
public typealias IssuesAdvancedSearch = Swift.String
5258-
/// The type of search to perform. Set to `semantic` to perform a semantic search.
5259-
///
5260-
/// - Remark: Generated from `#/components/parameters/search-type`.
5261-
@frozen public enum SearchType: String, Codable, Hashable, Sendable, CaseIterable {
5262-
case semantic = "semantic"
5263-
}
52645258
}
52655259
/// Types generated from the `#/components/requestBodies` section of the OpenAPI document.
52665260
public enum RequestBodies {}
@@ -6035,14 +6029,6 @@ public enum Operations {
60356029
///
60366030
/// - Remark: Generated from `#/paths/search/issues/GET/query/advanced_search`.
60376031
public var advancedSearch: Components.Parameters.IssuesAdvancedSearch?
6038-
/// - Remark: Generated from `#/components/parameters/search-type`.
6039-
@frozen public enum SearchType: String, Codable, Hashable, Sendable, CaseIterable {
6040-
case semantic = "semantic"
6041-
}
6042-
/// The type of search to perform. Set to `semantic` to perform a semantic search.
6043-
///
6044-
/// - Remark: Generated from `#/paths/search/issues/GET/query/search_type`.
6045-
public var searchType: Components.Parameters.SearchType?
60466032
/// Creates a new `Query`.
60476033
///
60486034
/// - Parameters:
@@ -6052,23 +6038,20 @@ public enum Operations {
60526038
/// - perPage: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
60536039
/// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
60546040
/// - advancedSearch: Set to `true` to use advanced search.
6055-
/// - searchType: The type of search to perform. Set to `semantic` to perform a semantic search.
60566041
public init(
60576042
q: Swift.String,
60586043
sort: Operations.SearchIssuesAndPullRequests.Input.Query.SortPayload? = nil,
60596044
order: Components.Parameters.Order? = nil,
60606045
perPage: Components.Parameters.PerPage? = nil,
60616046
page: Components.Parameters.Page? = nil,
6062-
advancedSearch: Components.Parameters.IssuesAdvancedSearch? = nil,
6063-
searchType: Components.Parameters.SearchType? = nil
6047+
advancedSearch: Components.Parameters.IssuesAdvancedSearch? = nil
60646048
) {
60656049
self.q = q
60666050
self.sort = sort
60676051
self.order = order
60686052
self.perPage = perPage
60696053
self.page = page
60706054
self.advancedSearch = advancedSearch
6071-
self.searchType = searchType
60726055
}
60736056
}
60746057
public var query: Operations.SearchIssuesAndPullRequests.Input.Query

0 commit comments

Comments
 (0)