Skip to content

Commit

Permalink
🐛 Fix search parameter
Browse files Browse the repository at this point in the history
Corrects `search` parameter to a `@query` parameter. Previously, it
erroneously was considered a request body parameter.
  • Loading branch information
connorjs committed Sep 10, 2023
1 parent dfecd24 commit fa77656
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/films.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace films {
* @param search Case-insensitive partial match on the `title` field.
*/
@OpenAPI.operationId("ListFilms")
op list(search: string): Film[];
op list(@query search: string): Film[];

@route("/{filmId}")
namespace film {
Expand Down
2 changes: 1 addition & 1 deletion src/people.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace people {
* @param search Case-insensitive partial match on the `name` field.
*/
@OpenAPI.operationId("ListPerson")
op list(search: string): Person[];
op list(@query search: string): Person[];

@route("/{personId}")
namespace person {
Expand Down
2 changes: 1 addition & 1 deletion src/planets.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace planets {
* @param search Case-insensitive partial match on the `name` field.
*/
@OpenAPI.operationId("ListPlanet")
op list(search: string): Planet[];
op list(@query search: string): Planet[];

@route("/{planetId}")
namespace planet {
Expand Down
2 changes: 1 addition & 1 deletion src/species.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace species {
* @param search Case-insensitive partial match on the `name` field.
*/
@OpenAPI.operationId("ListSpecies")
op list(search: string): Species[];
op list(@query search: string): Species[];

@route("/{speciesId}")
namespace species {
Expand Down
2 changes: 1 addition & 1 deletion src/starships.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace starships {
* @param search Case-insensitive partial match on the `name` and `model` fields.
*/
@OpenAPI.operationId("ListStarships")
op list(search: string): Starship[];
op list(@query search: string): Starship[];

@route("/{starshipId}")
namespace starship {
Expand Down
2 changes: 1 addition & 1 deletion src/vehicles.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace vehicles {
* @param search Case-insensitive partial match on the `name` and `model` fields.
*/
@OpenAPI.operationId("ListVehicles")
op list(search: string): Vehicle[];
op list(@query search: string): Vehicle[];

@route("/{vehicleId}")
namespace vehicle {
Expand Down

0 comments on commit fa77656

Please sign in to comment.