Skip to content

Commit

Permalink
Port schema compat
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Mar 29, 2018
1 parent 629acfd commit d5ba05e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/protocol/Runtime.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ portToPayload = (pub, internal, network, inPort) ->
# Network has been prepared but isn't running yet so
# we don't have full component info
return def unless port
def.type = port.getDataType()
def.schema = port.getSchema() if port.getSchema
def.description = internal.metadata?.description or port.getDescription()
def.type = port.getDataType() or 'all'
def.schema = port.getSchema() if port.getSchema?()
def.description = internal.metadata?.description or port.getDescription() or ''
def.addressable = port.isAddressable()
def.required = port.isRequired()
return def
Expand Down

0 comments on commit d5ba05e

Please sign in to comment.