Skip to content

Commit 34a7c67

Browse files
authored
[DOCS] Fix nullable type linting error in OpenAPI document (#18018)
1 parent 75abd8a commit 34a7c67

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

docs/static/spec/openapi/logstash-api.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,11 +1748,9 @@ components:
17481748
type: string
17491749
description: A unique identifier for the ephemeral session of the Logstash instance.
17501750
snapshot:
1751-
type: boolean
1752-
nullable: true
1751+
type: [boolean, 'null']
17531752
status:
17541753
$ref: '#/components/schemas/Status'
1755-
17561754
PipelineSettings:
17571755
type: object
17581756
properties:
@@ -2263,19 +2261,16 @@ components:
22632261
type: object
22642262
properties:
22652263
last_error:
2266-
type: string
2267-
nullable: true
2264+
type: [ string, 'null']
22682265
successes:
22692266
type: integer
22702267
format: int64
22712268
last_success_timestamp:
2272-
type: string
2269+
type: [ string, 'null']
22732270
format: date-time
2274-
nullable: true
22752271
last_failure_timestamp:
2276-
type: string
2272+
type: [ string, 'null']
22772273
format: date-time
2278-
nullable: true
22792274
failures:
22802275
type: integer
22812276
format: int64

docs/static/spec/openapi/redocly.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,10 @@ rules:
2626
# Paths
2727
no-ambiguous-paths: warn
2828
no-identical-paths: error
29-
path-excludes-patterns:
30-
severity: error
31-
patterns:
32-
- ^\/internal
3329
# Responses
3430
operation-4xx-response: off
3531
operation-2xx-response: off
3632
# Schema
37-
spec: off
3833
spec-strict-refs: off
3934
# Tags
4035
operation-tag-defined: off
@@ -49,4 +44,11 @@ rules:
4944
severity: warn
5045
assertions:
5146
maxLength: 45
52-
minLength: 5
47+
minLength: 5
48+
rule/path-exclude-pattern:
49+
subject:
50+
type: Paths
51+
message: Do not include internal APIs
52+
assertions:
53+
notPattern: ^\/internal
54+
severity: error

0 commit comments

Comments
 (0)