Skip to content

Commit

Permalink
Merge #405
Browse files Browse the repository at this point in the history
405: Changes related to the next Meilisearch release (v1.0.0) r=alallema a=meili-bot

Related to this issue: meilisearch/integration-guides#230

This PR:
- gathers the changes related to the next Meilisearch release (v1.0.0) so that this package is ready when the official release is out.
- should pass the tests against the [latest pre-release of Meilisearch](https://github.com/meilisearch/meilisearch/releases).
- might eventually contain test failures until the Meilisearch v1.0.0 is out.

⚠️ This PR should NOT be merged until the next release of Meilisearch (v1.0.0) is out.

_This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/main/resources/pre-release-week.md) purpose._

Done:
- KeyParsed struct has been changed; this structure is used to manage the time format when creating a key, however, all the `Key` fields were available in the structure, while only those used to create a key should be available in it.
    - `createdAt` has been removed
    - `updatedAt` has been removed

Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Amélie <[email protected]>
Co-authored-by: alallema <[email protected]>
  • Loading branch information
4 people authored Feb 6, 2023
2 parents a42f23f + 70348e7 commit bcc92dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ searchRes, err := index.Search("wonder",

## 🤖 Compatibility with Meilisearch

This package only guarantees the compatibility with the [version v0.30.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.30.0).
This package only guarantees the compatibility with the [version v1.0.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v1.0.0).

## 💡 Learn more

Expand Down
14 changes: 6 additions & 8 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,12 @@ type Key struct {

// This structure is used to send the exact ISO-8601 time format managed by Meilisearch
type KeyParsed struct {
Name string `json:"name"`
Description string `json:"description"`
UID string `json:"uid,omitempty"`
Actions []string `json:"actions,omitempty"`
Indexes []string `json:"indexes,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
ExpiresAt *string `json:"expiresAt"`
Name string `json:"name"`
Description string `json:"description"`
UID string `json:"uid,omitempty"`
Actions []string `json:"actions,omitempty"`
Indexes []string `json:"indexes,omitempty"`
ExpiresAt *string `json:"expiresAt"`
}

// This structure is used to update a Key
Expand Down
18 changes: 0 additions & 18 deletions types_easyjson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bcc92dc

Please sign in to comment.