Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: transform ContractNegotiationErrorMessage to ContractNegotiationError #16

Merged
merged 2 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions negotiation/contract.negotiation.binding.https.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ The OpenAPI definitions for this specification can be accessed [here](TBD).

2. All request and response messages must use the `application/json` media type.

### 2.2 NegotiationErrorMessage
### 2.2 ContractNegotiationError

In the event of a client request error, the connector must return an appropriate HTTP 4xxx client error code. If an error body is returned it must be
a [ContractNegotiationErrorMessage](./message/contract.negotiation.error.message.json) with the following properties:
a [ContractNegotiationError](./message/contract.negotiation.error.json) with the following properties:

| Field | Type | Description |
|---------------|---------------|-------------------------------------------------------------|
Expand Down
10 changes: 5 additions & 5 deletions negotiation/contract.negotiation.protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,21 @@ without providing an explanation. Nevertheless, the sender may provide a descrip

- If an error is received in response to a ContractNegotiationTermination, the sending party may choose to ignore the error.

### 6. ContractNegotiationErrorMessage
## ContractNegotiationError

**Sent by**: Consumer or Provider

**Example**: [NegotiationErrorMessage](./message/contract.negotiation.error.message.json)
**Example**: [NegotiationError](./message/contract.negotiation.error.json)

**Schema**: [ContractNegotiationErrorMessageShape](../../schemas/contract-negotiation-error-message-shape.ttl)
**Schema**: [ContractNegotiationErrorShape](../../schemas/contract-negotiation-error-message-shape.ttl)

#### Description

The _ContractNegotiationErrorMessage_ is a message returned by a consumer or provider indicating an error has occurred. It does not cause a state transition.
The _ContractNegotiationError_ is an object returned by a consumer or provider indicating an error has occurred. It does not cause a state transition.

#### Notes

- A _ContractNegotiationErrorMessage_ is different to an error response. A _ContractNegotiationErrorMessage_ does not necessarily finish the negotiation but can continue
- A _ContractNegotiationError_ is different to an error response. A _ContractNegotiationError_ does not necessarily finish the negotiation but can continue
afterwards.

## Hash and Signature Calculations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": "https://w3id.org/idsa/v5/context.json",
"@type": "ids:ContractNegotiationErrorMessage",
"@type": "ids:ContractNegotiationError",
"ids:processId": "urn:uuid:a343fcbf-99fc-4ce8-8e9b-148c97605aab",
"ids:code": "...",
"ids:reasons": [
Expand Down