Skip to content

Commit

Permalink
[#IOCOM-556] Add has_precondition flag to ThirdPartyData (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garma00 authored Sep 28, 2023
1 parent 13e1c7d commit ec20913
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 8 additions & 8 deletions openapi/__tests__/definitions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ describe("ServicePayload definition", () => {
email: "test@mail.it",
pec: "pec@mail.it",
phone: "333",
privacy_url: "http://privateurl.it",
privacy_url: "https://privateurl.it",
scope: "LOCAL",
support_url: "http://supporturl.it",
support_url: "https://supporturl.it",
token_name: "token",
tos_url: "http://weburlk.it",
web_url: "http://weburl.it"
tos_url: "https://weburlk.it",
web_url: "https://weburl.it"
};

const visibleService = {
Expand Down Expand Up @@ -96,12 +96,12 @@ describe("ServicePayload definition", () => {
email: "test@mail.it",
pec: "pec@mail.it",
phone: "333",
privacy_url: "http://privateurl.it",
privacy_url: "https://privateurl.it",
scope: "LOCAL",
support_url: "http://supporturl.it",
support_url: "https://supporturl.it",
token_name: "token",
tos_url: "http://weburlk.it",
web_url: "http://weburl.it"
tos_url: "https://weburlk.it",
web_url: "https://weburl.it"
}
};

Expand Down
6 changes: 6 additions & 0 deletions openapi/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ ThirdPartyData:
has_attachments:
type: boolean
default: false
has_precondition:
type: string
x-extensible-enum:
- ALWAYS
- ONCE
- NEVER
summary:
type: string
minLength: 1
Expand Down

0 comments on commit ec20913

Please sign in to comment.