Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Rożek <jakub@rozek.tech>
  • Loading branch information
magicmatatjahu and P0lip committed May 19, 2022
1 parent d2607e1 commit adab676
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 adab676

Please sign in to comment.