Skip to content

Commit 3df4246

Browse files
committed
fix: add license headers and correct selector syntax
- Add Apache 2.0 license headers to CUE schema files - Fix #selector to use _kind: #kind pattern instead of hardcoded kind field - Resolves schema validation error and license check failures Signed-off-by: Aviral Garg <waysorted@gmail.com> Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
1 parent 4a6a3f6 commit 3df4246

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
// Copyright The Perses Authors
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// http://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
114
package model
215

316
import (
417
"github.com/perses/perses/cue/common"
518
commonProxy "github.com/perses/perses/cue/common/proxy"
619
)
720

8-
kind: "OpenGeminiDatasource"
21+
kind: #kind
922
spec: commonProxy.#baseHTTPDatasourceSpec
1023

11-
#selector: common.#datasourceSelector & {
12-
kind: "OpenGeminiDatasource"
13-
}
24+
#kind: "OpenGeminiDatasource"
25+
26+
#selector: common.#datasourceSelector & { _kind: #kind }

opengemini/schemas/queries/opengemini-time-series-query/query.cue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
// Copyright The Perses Authors
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// http://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
114
package model
215

316
import (

0 commit comments

Comments
 (0)