weaviate
109 строк · 3.7 Кб
1// _ _
2// __ _____ __ ___ ___ __ _| |_ ___
3// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
4// \ V V / __/ (_| |\ V /| | (_| | || __/
5// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
6//
7// Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
8//
9// CONTACT: hello@weaviate.io
10//
11
12// Code generated by go generate; DO NOT EDIT.
13// This file was generated by go generate ./deprecations
14package deprecations
15
16import (
17"time"
18
19"github.com/go-openapi/strfmt"
20"github.com/weaviate/weaviate/entities/models"
21)
22
23func timeMust(t time.Time, err error) strfmt.DateTime {
24if err != nil {
25panic(err)
26}
27
28return strfmt.DateTime(t)
29}
30
31func timeMustPtr(t time.Time, err error) *strfmt.DateTime {
32if err != nil {
33panic(err)
34}
35
36parsed := strfmt.DateTime(t)
37return &parsed
38}
39
40func ptString(in string) *string {
41return &in
42}
43
44var ByID = map[string]models.Deprecation{
45"rest-meta-prop": {
46ID: "rest-meta-prop",
47Locations: []string{
48"GET /v1/thing/{id}",
49"GET /v1/things",
50"GET /v1/action/{id}",
51"GET /v1/actions",
52},
53Status: "deprecated",
54APIType: "REST",
55Mitigation: "Use ?include=<propName>, e.g. ?include=_classification for classification meta or ?include=_vector to show the vector position or ?include=_classification,_vector for both. When consuming the response use the additional fields such as _vector, as the meta object in the response, such as meta.vector will be removed.",
56Msg: "use of deprecated property ?meta=true/false",
57SinceVersion: "0.22.8",
58SinceTime: timeMust(time.Parse(time.RFC3339, "2020-06-15T16:18:06.000Z")),
59RemovedIn: ptString("0.23.0"),
60RemovedTime: timeMustPtr(time.Parse(time.RFC3339, "2020-06-15T16:18:06.000Z")),
61},
62"config-files": {
63ID: "config-files",
64Locations: []string{
65"--config-file=\"\"",
66},
67Status: "deprecated",
68APIType: "Configuration",
69Mitigation: "Configure Weaviate using environment variables.",
70Msg: "use of deprecated command line argument --config-file",
71SinceVersion: "0.22.16",
72SinceTime: timeMust(time.Parse(time.RFC3339, "2020-09-08T09:46:00.000Z")),
73},
74"cardinality": {
75ID: "cardinality",
76Locations: []string{
77"GET /v1/schema",
78"POST /v1/schema/things",
79"POST /v1/schema/actions",
80"POST /v1/schema/things/{className}/properties",
81"POST /v1/schema/actions/{className}/properties",
82},
83Status: "deprecated",
84APIType: "REST",
85Mitigation: "Omit this field. Starting in 0.22.7 it no longer has any effect.",
86Msg: "use of deprecated property option 'cardinality'",
87SinceVersion: "0.22.17",
88SinceTime: timeMust(time.Parse(time.RFC3339, "2020-09-16T09:06:00.000Z")),
89RemovedIn: ptString("0.23.0"),
90RemovedTime: timeMustPtr(time.Parse(time.RFC3339, "2020-09-16T09:06:00.000Z")),
91},
92"ref-meta-deprecated-fields": {
93ID: "ref-meta-deprecated-fields",
94Locations: []string{
95"GET /v1/thing/{id}",
96"GET /v1/things",
97"GET /v1/action/{id}",
98"GET /v1/actions",
99},
100Status: "deprecated",
101APIType: "REST",
102Mitigation: "when using _classification the reference meta after a successful\nclassification contains various counts and distances. Starting in 0.22.20\nthe fields winningDistance and losingDistance are considered deprecated.\nNew fields were added and they have more descriptive names. User\nmeanWinningDistance instead of winningDistance and use meanLosingDistance\ninstead of losingDistance",
103Msg: "response contains deprecated fields winningDistance and losingDistance",
104SinceVersion: "0.22.20",
105SinceTime: timeMust(time.Parse(time.RFC3339, "2020-11-26T14:58:00.000Z")),
106RemovedIn: ptString("0.23.0"),
107RemovedTime: timeMustPtr(time.Parse(time.RFC3339, "2020-11-26T14:58:00.000Z")),
108},
109}
110