Skip to content

Commit bcc92dc

Browse files
bors[bot]meili-botalallema
authored
Merge #405
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 <74670311+meili-bot@users.noreply.github.com> Co-authored-by: Amélie <alallema@users.noreply.github.com> Co-authored-by: alallema <amelie@meilisearch.com>
2 parents a42f23f + 70348e7 commit bcc92dc

File tree

3 files changed

+7
-27
lines changed

3 files changed

+7
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ searchRes, err := index.Search("wonder",
230230

231231
## 🤖 Compatibility with Meilisearch
232232

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

235235
## 💡 Learn more
236236

types.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,12 @@ type Key struct {
237237

238238
// This structure is used to send the exact ISO-8601 time format managed by Meilisearch
239239
type KeyParsed struct {
240-
Name string `json:"name"`
241-
Description string `json:"description"`
242-
UID string `json:"uid,omitempty"`
243-
Actions []string `json:"actions,omitempty"`
244-
Indexes []string `json:"indexes,omitempty"`
245-
CreatedAt time.Time `json:"createdAt,omitempty"`
246-
UpdatedAt time.Time `json:"updatedAt,omitempty"`
247-
ExpiresAt *string `json:"expiresAt"`
240+
Name string `json:"name"`
241+
Description string `json:"description"`
242+
UID string `json:"uid,omitempty"`
243+
Actions []string `json:"actions,omitempty"`
244+
Indexes []string `json:"indexes,omitempty"`
245+
ExpiresAt *string `json:"expiresAt"`
248246
}
249247

250248
// This structure is used to update a Key

types_easyjson.go

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)