-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: suppliers and consumers return a function (#130)
* test: Added basic jest testing and coverage reports * test: fixed descibte test suite name * test: merge master * test: remove husky install script * test: removed husky precommits; removed coverage setup for later PR; reverted eslintrc rename; use snapshot testing * test: use const instead of let * chore: add sonar exclusion for entire test directory * chore: add correct path for sonar exclusion * chore: add correct path for sonar exclusion * feat: suppliers and consumers return functions * test: Remove exclusion; try using nosonar * fix: missing semicolon * fix: support functions instead of just suppliers and consumers * fix: syntax typo - change && to the word and * test: created test with x-scs-function-name * chore: fix linting - switched quote types on string
- Loading branch information
1 parent
d1ef991
commit 0141591
Showing
4 changed files
with
159 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
components: | ||
schemas: | ||
mySchema: | ||
title: MySchema | ||
type: object | ||
properties: | ||
prop1: | ||
default: default string | ||
title: PropertyTitle | ||
type: string | ||
myOtherSchema: | ||
title: MyOtherSchema | ||
type: object | ||
properties: | ||
prop1: | ||
default: default string | ||
title: PropertyTitle | ||
type: string | ||
messages: | ||
myEvent: | ||
payload: | ||
$ref: '#/components/schemas/mySchema' | ||
schemaFormat: application/vnd.aai.asyncapi+json;version=2.0.0 | ||
contentType: application/json | ||
myOtherEvent: | ||
payload: | ||
$ref: '#/components/schemas/myOtherSchema' | ||
schemaFormat: application/vnd.aai.asyncapi+json;version=2.0.0 | ||
contentType: application/json | ||
channels: | ||
'testLevel1/{messageId}/{operation}': | ||
subscribe: | ||
x-scs-function-name: sameFunctionName | ||
message: | ||
$ref: '#/components/messages/myOtherEvent' | ||
publish: | ||
x-scs-function-name: sameFunctionName | ||
bindings: | ||
smf: | ||
topicSubscriptions: | ||
- testLevel1/*/* | ||
channelType: clientEndpoint | ||
bindingVersion: 0.1.0 | ||
message: | ||
$ref: '#/components/messages/myEvent' | ||
parameters: | ||
messageId: | ||
schema: | ||
type: string | ||
operation: | ||
schema: | ||
type: string | ||
enum: | ||
- POST | ||
- DELETE | ||
asyncapi: 2.0.0 | ||
info: | ||
title: solace-test-app | ||
version: 0.0.1 |