diff --git a/negotiation/contract.negotiation.binding.https.md b/negotiation/contract.negotiation.binding.https.md index c0104e4d..1834abcb 100644 --- a/negotiation/contract.negotiation.binding.https.md +++ b/negotiation/contract.negotiation.binding.https.md @@ -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 | |---------------|---------------|-------------------------------------------------------------| diff --git a/negotiation/contract.negotiation.protocol.md b/negotiation/contract.negotiation.protocol.md index 5df173d6..7fd57afb 100644 --- a/negotiation/contract.negotiation.protocol.md +++ b/negotiation/contract.negotiation.protocol.md @@ -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 diff --git a/negotiation/message/contract.negotiation.error.message.json b/negotiation/message/contract.negotiation.error.json similarity index 78% rename from negotiation/message/contract.negotiation.error.message.json rename to negotiation/message/contract.negotiation.error.json index 2e457b33..6406faef 100644 --- a/negotiation/message/contract.negotiation.error.message.json +++ b/negotiation/message/contract.negotiation.error.json @@ -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": [ diff --git a/negotiation/message/contract.agreement.message.http.transfer.json b/negotiation/message/example/contract.agreement.message.http.transfer.json similarity index 100% rename from negotiation/message/contract.agreement.message.http.transfer.json rename to negotiation/message/example/contract.agreement.message.http.transfer.json