Skip to content

Commit

Permalink
fix: Test cases to have empty objects and not nulls (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Aug 5, 2020
1 parent 3862250 commit 68a841d
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ channels:
message:
payload:
type: string
bindings:
bindings: {}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ info:
version: 0.1.0

channels:
/user/signedup:
/user/signedup: {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ channels:
email:
type: string
format: email
bindings:
bindings: {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ info:
channels:
/user/signedup:
subscribe:
message:
message: {}
4 changes: 3 additions & 1 deletion tests/asyncapi-2.0/Message Object/valid-empty-object.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
asyncapi: 2.0.0

defaultContentType: application/json

info:
title: Signup service example (internal)
version: 0.1.0

channels:
/user/signedup:
subscribe:
message:
message: {}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ info:
channels:
/user/signedup:
subscribe:
message:
message: {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ channels:

components:
messageTraits:
signedUpMessage:
signedUpMessage: {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ channels:

components:
messageTraits:
signedUpMessage:
signedUpMessage: {}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ channels:

components:
messageTraits:
signedUpMessage:
signedUpMessage: {}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ channels:
email:
type: string
format: email
bindings:
bindings: {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ info:

channels:
/user/signedup:
subscribe:
subscribe: {}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ channels:

components:
operationTraits:
userSignedUpTrait:
userSignedUpTrait: {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ channels:

components:
operationTraits:
userSignedUpTrait:
userSignedUpTrait: {}
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ components:
securitySchemes:
mainSecurity:
type: oauth2
flows:
flows: {}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ servers:
production:
url: development.gigantic-server.com
protocol: mqtt
bindings:
bindings: {}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ servers:
description: The production API server
protocol: secure-mqtt
variables:
username:
username: {}

0 comments on commit 68a841d

Please sign in to comment.