weaviate

Форк
0
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
14
package deprecations
15

16
import (
17
	"time"
18

19
	"github.com/go-openapi/strfmt"
20
	"github.com/weaviate/weaviate/entities/models"
21
)
22

23
func timeMust(t time.Time, err error) strfmt.DateTime {
24
	if err != nil {
25
		panic(err)
26
	}
27

28
	return strfmt.DateTime(t)
29
}
30

31
func timeMustPtr(t time.Time, err error) *strfmt.DateTime {
32
	if err != nil {
33
		panic(err)
34
	}
35

36
	parsed := strfmt.DateTime(t)
37
	return &parsed
38
}
39

40
func ptString(in string) *string {
41
	return &in
42
}
43

44
var ByID = map[string]models.Deprecation{
45
	"rest-meta-prop": {
46
		ID: "rest-meta-prop",
47
		Locations: []string{
48
			"GET /v1/thing/{id}",
49
			"GET /v1/things",
50
			"GET /v1/action/{id}",
51
			"GET /v1/actions",
52
		},
53
		Status:       "deprecated",
54
		APIType:      "REST",
55
		Mitigation:   "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.",
56
		Msg:          "use of deprecated property ?meta=true/false",
57
		SinceVersion: "0.22.8",
58
		SinceTime:    timeMust(time.Parse(time.RFC3339, "2020-06-15T16:18:06.000Z")),
59
		RemovedIn:    ptString("0.23.0"),
60
		RemovedTime:  timeMustPtr(time.Parse(time.RFC3339, "2020-06-15T16:18:06.000Z")),
61
	},
62
	"config-files": {
63
		ID: "config-files",
64
		Locations: []string{
65
			"--config-file=\"\"",
66
		},
67
		Status:       "deprecated",
68
		APIType:      "Configuration",
69
		Mitigation:   "Configure Weaviate using environment variables.",
70
		Msg:          "use of deprecated command line argument --config-file",
71
		SinceVersion: "0.22.16",
72
		SinceTime:    timeMust(time.Parse(time.RFC3339, "2020-09-08T09:46:00.000Z")),
73
	},
74
	"cardinality": {
75
		ID: "cardinality",
76
		Locations: []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
		},
83
		Status:       "deprecated",
84
		APIType:      "REST",
85
		Mitigation:   "Omit this field. Starting in 0.22.7 it no longer has any effect.",
86
		Msg:          "use of deprecated property option 'cardinality'",
87
		SinceVersion: "0.22.17",
88
		SinceTime:    timeMust(time.Parse(time.RFC3339, "2020-09-16T09:06:00.000Z")),
89
		RemovedIn:    ptString("0.23.0"),
90
		RemovedTime:  timeMustPtr(time.Parse(time.RFC3339, "2020-09-16T09:06:00.000Z")),
91
	},
92
	"ref-meta-deprecated-fields": {
93
		ID: "ref-meta-deprecated-fields",
94
		Locations: []string{
95
			"GET /v1/thing/{id}",
96
			"GET /v1/things",
97
			"GET /v1/action/{id}",
98
			"GET /v1/actions",
99
		},
100
		Status:       "deprecated",
101
		APIType:      "REST",
102
		Mitigation:   "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",
103
		Msg:          "response contains deprecated fields winningDistance and losingDistance",
104
		SinceVersion: "0.22.20",
105
		SinceTime:    timeMust(time.Parse(time.RFC3339, "2020-11-26T14:58:00.000Z")),
106
		RemovedIn:    ptString("0.23.0"),
107
		RemovedTime:  timeMustPtr(time.Parse(time.RFC3339, "2020-11-26T14:58:00.000Z")),
108
	},
109
}
110

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.