Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/validate-server-channel-variable…
Browse files Browse the repository at this point in the history
…s' into validate-server-channel-variables
  • Loading branch information
magicmatatjahu committed May 19, 2022
2 parents 16477d9 + adab676 commit eb2949e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Expand Up @@ -8,7 +8,15 @@ import type { IFunctionResult } from '@stoplight/spectral-core';

export default createRulesetFunction<{ parameters: Record<string, unknown> }, null>(
{
input: null,
input: {
type: 'object',
properties: {
parameters: {
type: 'object',
}
},
required: ['parameters'],
},
options: null,
},
function asyncApi2ChannelParameters(targetVal, _, ctx) {
Expand Down
Expand Up @@ -8,7 +8,18 @@ import type { IFunctionResult } from '@stoplight/spectral-core';

export default createRulesetFunction<{ url: string; variables: Record<string, unknown> }, null>(
{
input: null,
input: {
type: 'object',
properties: {
url: {
type: 'string',
},
variables: {
type: 'object',
}
},
required: ['url', 'variables'],
},
options: null,
},
function asyncApi2ServerVariables(targetVal, _, ctx) {
Expand Down

0 comments on commit eb2949e

Please sign in to comment.