Skip to content

Commit

Permalink
Completion for beta_health block and its attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
afflerbach committed Apr 12, 2022
1 parent 13341f7 commit 4f776af
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased](https://github.com/avenga/couper/compare-vscode/v1.3.0...master)

### Added

- completion for `beta_health` [#50](https://github.com/avenga/couper-vscode/pull/50)

### Changed

- permission-related attributes/error types [#75](https://github.com/avenga/couper-vscode/pull/75):
Expand Down
24 changes: 21 additions & 3 deletions src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const blocks = {
description: "Access control for an OAuth2 Authorization Code Grant Flow redirect endpoint.",
labelled: true
},
beta_health: {
parents: ['backend'],
labelled: false
},
cors: {
parents: ['api', 'files', 'server', 'spa'],
description: "Configures CORS (Cross-Origin Resource Sharing) behavior.",
Expand Down Expand Up @@ -313,6 +317,17 @@ const attributes = {
examples: ['sequences'],
arrayType: 'number'
},
expect_status: {
parents: ['beta_health'],
type: 'number'
},
expect_text: {
parents: ['beta_health']
},
failure_threshold: {
parents: ['beta_health'],
type: 'number'
},
file: {
parents: ['openapi']
},
Expand All @@ -329,7 +344,7 @@ const attributes = {
examples: ['jwt-access-control']
},
headers: {
parents: ['jwt_signing_profile', 'request', 'response'],
parents: ['beta_health', 'jwt_signing_profile', 'request', 'response'],
examples: ['static-responses'],
type: 'map'
},
Expand Down Expand Up @@ -366,6 +381,9 @@ const attributes = {
parents: ['openapi'],
type: 'boolean'
},
interval: {
parents: ['beta_health']
},
json_body: {
parents: ['request', 'response'],
examples: ['static-responses'],
Expand Down Expand Up @@ -418,7 +436,7 @@ const attributes = {
parents: ['basic_auth']
},
path: {
parents: ['backend', 'endpoint', 'error_handler', 'proxy']
parents: ['backend', 'endpoint', 'error_handler', 'beta_health', 'proxy']
},
path_prefix: {
parents: ['backend']
Expand Down Expand Up @@ -539,7 +557,7 @@ const attributes = {
type: 'number'
},
timeout: {
parents: ['backend', 'websockets']
parents: ['backend', 'beta_health', 'websockets']
},
token_endpoint: {
parents: ['beta_oauth2', 'oauth2']
Expand Down

0 comments on commit 4f776af

Please sign in to comment.