Skip to content

Commit

Permalink
refactor(rulesets): remove unused rules style param (#2306)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Rożek <[email protected]>
  • Loading branch information
philsturgeon and P0lip authored Oct 13, 2022
1 parent e9b9708 commit 9b50f88
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 105 deletions.
1 change: 0 additions & 1 deletion docs/migration-guides/6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ Workaround: Insert the following rule in your custom ruleset.
"operation-default-response": {
"description": "Operations must have a default response.",
"recommended": false,
"type": "style",
"given": "$.paths.*.*.responses",
"then": {
"field": "default",
Expand Down
8 changes: 0 additions & 8 deletions docs/reference/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Enforce alphabetical content, for simple arrays, or for objects by passing a key
```yaml
openapi-tags-alphabetical:
description: OpenAPI object should have alphabetical `tags`.
type: style
recommended: true
given: "$"
then:
Expand All @@ -42,7 +41,6 @@ Does the field value exist in this set of possible values?
```yaml
whitelisted-tags:
description: Pick from a very restrictive set of tags.
type: style
given: "$.paths.*"
then:
field: tags
Expand Down Expand Up @@ -76,7 +74,6 @@ At the very least `min` or `max` has to be provided. You can specify both as wel
```yaml
operation-singular-tag:
description: Operations must have between 1 and 3 tags.
type: style
given: "$.paths.*"
then:
field: tags
Expand All @@ -102,7 +99,6 @@ Regular expressions!
```yaml
path-no-trailing-slash:
description: Paths should not end with `#/`.
type: style
given: "$.paths[*]~"
then:
function: pattern
Expand Down Expand Up @@ -145,7 +141,6 @@ Available types are:
```yaml
camel-case-name:
description: Name should be camelCased.
type: style
given: "$.name"
then:
function: casing
Expand All @@ -171,7 +166,6 @@ Use JSON Schema (draft 4, 6, 7, 2019-09, or 2020-12) to treat the contents of th
oas3-api-servers:
description: "OpenAPI `servers` must be present and non-empty array."
recommended: true
type: "style"
given: "$"
then:
field: servers
Expand Down Expand Up @@ -233,7 +227,6 @@ _Warning:_ This function may identify false positives when used against a specif
unused-definition:
description: Potentially unused definition has been detected.
recommended: true
type: style
resolved: false
given: "$.definitions"
then:
Expand All @@ -257,7 +250,6 @@ Communicate that one of these properties is required, and no more than one is al
```yaml
components-examples-value-or-externalValue:
description: Examples should have either a `value` or `externalValue` field.
type: style
given: "$.components.examples.*"
then:
function: xor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
'no-swagger': {
message: 'Use OpenAPI instead ;)',
given: '$..*',
type: 'style',
then: {
function: pattern,
functionOptions: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = {
'no-swagger': {
message: 'Use OpenAPI instead ;)',
given: '$..*',
type: 'style',
then: {
function: pattern,
functionOptions: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
message: 'Info must contain Stoplight',
given: '$.info',
recommended: true,
type: 'style',
then: {
field: 'title',
function: pattern,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"message": "Info must contain Stoplight",
"given": "$.info",
"recommended": true,
"type": "style",
"then": {
"field": "title",
"function": "pattern",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"explicitly-recommended": {
"message": "Should expose a `likeable` property",
"given": "$",
"type": "style",
"recommended": true,
"then": {
"field": "likeable",
Expand All @@ -13,7 +12,6 @@
"implicitly-recommended": {
"message": "Should expose a `likeable` property",
"given": "$",
"type": "style",
"then": {
"field": "likeable",
"function": "truthy"
Expand All @@ -22,7 +20,6 @@
"explicitly-not-recommended": {
"message": "Should expose a `likeable` property",
"given": "$",
"type": "style",
"recommended": false,
"then": {
"field": "likeable",
Expand Down
Loading

0 comments on commit 9b50f88

Please sign in to comment.