Skip to content

Commit

Permalink
add overlays examples (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdallah Abedraba authored Nov 30, 2022
1 parent 19f1750 commit 63f6e47
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kusk/internal/overlays/overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ actions:
remove: true
- target: "$.info"
update:
title: Overlayed!
title: Overlayed
description: |
This API has been overlayed 😎
22 changes: 22 additions & 0 deletions examples/overlays/openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
openapi: 3.0.0
servers:
- url: http://api.mydomain.com
info:
title: simple-api
version: 0.1.0
paths:
/hello:
get:
summary: Returns a Hello world to the user
responses:
'200':
description: A simple hello world!
content:
application/json; charset=utf-8:
schema:
type: object
properties:
message:
type: string
required:
- message
8 changes: 8 additions & 0 deletions examples/overlays/overlay.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
overlays: 1.0.0
extends: ./openapi.yaml
actions:
- target: "$"
update:
x-kusk:
mocking:
enabled: true

0 comments on commit 63f6e47

Please sign in to comment.