Skip to content

Commit 77c484d

Browse files
authored
Add OpenAPI overlays (#2728)
1 parent 5615a46 commit 77c484d

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.spectral.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ rules:
1414
oas3-valid-schema-example: false
1515
oas2-valid-media-example: false
1616
# Operations
17-
operation-operationId: false
18-
operation-operationId-unique: false
19-
operation-operationId-valid-in-url: false
17+
operation-operationId: warn
18+
operation-operationId-unique: warn
19+
operation-operationId-valid-in-url: warn
2020
operation-tag-defined: warn
2121
operation-tags: warn
2222
# Responses

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ dump-routes: ## Create a new schema with all generics expanded
5959

6060
contrib: | generate license-check spec-format-fix transform-to-openapi filter-for-serverless ## Pre contribution target
6161

62+
overlay-docs: ## Apply overlays to OpenAPI documents
63+
@npx bump overlay "output/openapi/elasticsearch-serverless-openapi.json" "docs/overlays/elasticsearch-serverless-openapi-overlays.yaml" > "output/openapi/elasticsearch-serverless-openapi.new.json"
64+
6265
lint-docs: ## Lint the OpenAPI documents
6366
@npx @stoplight/spectral-cli lint output/openapi/*.json --ruleset .spectral.yaml
6467

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# overlays.yaml
2+
overlay: 1.0.0
3+
info:
4+
title: Overlays for the Elasticsearch Serverless OpenAPI document
5+
version: 0.0.1
6+
actions:
7+
- target: '$.info'
8+
description: Add a document description
9+
update:
10+
description: >
11+
**Technical preview**
12+
This functionality is in technical preview and may be changed or removed in a future release.
13+
Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
14+
15+

0 commit comments

Comments
 (0)