Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
Fixes ServiceTuple and ServicePublic definitions (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
francescopersico authored and cloudify committed Apr 16, 2019
1 parent 0c29eb8 commit d76fa29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions api/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ ServicePublic:
- organization_name
- department_name
- organization_fiscal_code
- version
ServiceId:
type: string
description: |-
Expand All @@ -486,6 +487,9 @@ ServiceTuple:
$ref: "#/ServiceId"
version:
type: integer
required:
- service_id
- version
ServiceName:
type: string
description: The name of the service. Will be added to the content of sent messages.
Expand Down
3 changes: 2 additions & 1 deletion lib/controllers/__tests__/services.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ const aServicePayload: ApiService = {
organization_fiscal_code: anOrganizationFiscalCode,
organization_name: "MyOrgName" as NonEmptyString,
service_id: "MySubscriptionId" as NonEmptyString,
service_name: "MyServiceName" as NonEmptyString
service_name: "MyServiceName" as NonEmptyString,
version: 1
};

const aService: Service = {
Expand Down

0 comments on commit d76fa29

Please sign in to comment.