Commit 42a4c705 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

api/projects: support plain strings for the some query fields

parent d8728b55
......@@ -19,6 +19,9 @@ been added.
* The `api::projects::environments::Environment` endpoint uses the correct
path now.
* The `api::projects::members::ProjectMembers` and
`api::projects::repository::Branches` endpoints now accepts plain strings
for their `query` fields.
## Changes
......
......@@ -13,6 +13,7 @@ use crate::api::endpoint_prelude::*;
/// Query a members of a project.
#[derive(Debug, Builder)]
#[builder(setter(strip_option))]
pub struct ProjectMembers<'a> {
/// The project to query for membership.
#[builder(setter(into))]
......
......@@ -11,6 +11,7 @@ use crate::api::endpoint_prelude::*;
/// Query for a specific branch in a project.
#[derive(Debug, Builder)]
#[builder(setter(strip_option))]
pub struct Branches<'a> {
/// The project to get a branch from.
#[builder(setter(into))]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment