Skip to content

Commit

Permalink
Adding namespace property to user search results (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek authored May 17, 2024
1 parent 0c17939 commit 286d35b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ object UserId:

final case class User(
id: Id,
namespace: Option[Namespace] = None,
firstName: Option[users.FirstName] = None,
lastName: Option[users.LastName] = None,
score: Option[Double] = None
Expand All @@ -96,11 +97,13 @@ object User:
private given Schema[users.FirstName] = Schema.string[users.FirstName]
private given Schema[users.LastName] = Schema.string[users.LastName]
private given Schema[users.Email] = Schema.string[users.Email]
private given Schema[Namespace] = Schema.string[Namespace]
given Schema[User] = Schema
.derived[User]
.jsonExample(
User(
Id("1CAF4C73F50D4514A041C9EDDB025A36"),
Some(Namespace("renku/renku")),
Some(users.FirstName("Albert")),
Some(users.LastName("Einstein")),
Some(2.1)
Expand Down
2 changes: 0 additions & 2 deletions modules/search-query-docs/docs/manual.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Search Query

**NOTE: this is a work in progress**

The search accepts queries in two representations: JSON and a simple
query string. A query may contain specific and unspecific search
terms.
Expand Down

0 comments on commit 286d35b

Please sign in to comment.