-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start using official styleguide protos in v1 (#614)
* Start using official styleguide protos * Start using official styleguide protos * Small fixes for mime_type strings * Run addlicense * test fixes
- Loading branch information
1 parent
0961ea5
commit 2f9a84a
Showing
43 changed files
with
2,344 additions
and
2,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
rules: | ||
ignore: | ||
- ".github/in-solidarity.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
cmd/registry/cmd/apply/testdata/sample/artifacts/styleguide.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: apigeeregistry/v1 | ||
kind: StyleGuide | ||
metadata: | ||
name: styleguide | ||
data: | ||
displayName: StyleGuide | ||
mimeTypes: | ||
- application/x.openapi+gzip;version=2 | ||
guidelines: | ||
- id: refproperties | ||
displayName: Govern Ref Properties | ||
description: This guideline governs properties for ref fields on specs. | ||
rules: | ||
- id: norefsiblings | ||
displayName: No Ref Siblings | ||
description: An object exposing a $ref property cannot be further extended with additional properties. | ||
linter: spectral | ||
linterRulename: no-$ref-siblings | ||
severity: ERROR | ||
docUri: https://meta.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#no-ref-siblings | ||
state: ACTIVE | ||
linters: | ||
- name: spectral | ||
uri: https://github.com/stoplightio/spectral |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.