From 0bf94c732f9312795cd9921c840762a54297f4ec Mon Sep 17 00:00:00 2001 From: UlyanaAndrukhiv Date: Mon, 13 Jan 2025 14:27:19 +0200 Subject: [PATCH 1/2] Added omitempty tag to Expandable field for Block --- openapi/access.yaml | 1 - openapi/go-client-generated/api/swagger.yaml | 1 - openapi/go-client-generated/docs/Block.md | 2 +- openapi/go-client-generated/model_block.go | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/openapi/access.yaml b/openapi/access.yaml index 441fbaae4..8c6b3b807 100644 --- a/openapi/access.yaml +++ b/openapi/access.yaml @@ -937,7 +937,6 @@ components: type: object required: - header - - _expandable properties: header: $ref: '#/components/schemas/BlockHeader' diff --git a/openapi/go-client-generated/api/swagger.yaml b/openapi/go-client-generated/api/swagger.yaml index 3f4abf614..c85e01937 100644 --- a/openapi/go-client-generated/api/swagger.yaml +++ b/openapi/go-client-generated/api/swagger.yaml @@ -1577,7 +1577,6 @@ components: - Expired Block: required: - - _expandable - header type: object properties: diff --git a/openapi/go-client-generated/docs/Block.md b/openapi/go-client-generated/docs/Block.md index d683a5ef6..c7308560c 100644 --- a/openapi/go-client-generated/docs/Block.md +++ b/openapi/go-client-generated/docs/Block.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **Header** | [***BlockHeader**](BlockHeader.md) | | [default to null] **Payload** | [***BlockPayload**](BlockPayload.md) | | [optional] [default to null] **ExecutionResult** | [***ExecutionResult**](ExecutionResult.md) | | [optional] [default to null] -**Expandable** | [***BlockExpandable**](Block__expandable.md) | | [default to null] +**Expandable** | [***BlockExpandable**](Block__expandable.md) | | [optional] [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/go-client-generated/model_block.go b/openapi/go-client-generated/model_block.go index 860f60013..3a916dad3 100644 --- a/openapi/go-client-generated/model_block.go +++ b/openapi/go-client-generated/model_block.go @@ -12,6 +12,6 @@ type Block struct { Header *BlockHeader `json:"header"` Payload *BlockPayload `json:"payload,omitempty"` ExecutionResult *ExecutionResult `json:"execution_result,omitempty"` - Expandable *BlockExpandable `json:"_expandable"` + Expandable *BlockExpandable `json:"_expandable,omitempty"` Links *Links `json:"_links,omitempty"` } From 4c3fcf5ad9ddb0743f4fcce891efbf211e42c11b Mon Sep 17 00:00:00 2001 From: UlyanaAndrukhiv Date: Tue, 14 Jan 2025 15:55:20 +0200 Subject: [PATCH 2/2] Added missed block_status field to Block --- openapi/access.yaml | 3 +++ openapi/go-client-generated/api/swagger.yaml | 4 ++++ openapi/go-client-generated/docs/Block.md | 1 + openapi/go-client-generated/model_block.go | 1 + 4 files changed, 9 insertions(+) diff --git a/openapi/access.yaml b/openapi/access.yaml index 8c6b3b807..a6ec105d7 100644 --- a/openapi/access.yaml +++ b/openapi/access.yaml @@ -937,6 +937,7 @@ components: type: object required: - header + - block_status properties: header: $ref: '#/components/schemas/BlockHeader' @@ -954,6 +955,8 @@ components: format: uri _links: $ref: '#/components/schemas/Links' + block_status: + type: string BlockHeader: type: object required: diff --git a/openapi/go-client-generated/api/swagger.yaml b/openapi/go-client-generated/api/swagger.yaml index c85e01937..9928a6cdf 100644 --- a/openapi/go-client-generated/api/swagger.yaml +++ b/openapi/go-client-generated/api/swagger.yaml @@ -1577,6 +1577,7 @@ components: - Expired Block: required: + - block_status - header type: object properties: @@ -1590,7 +1591,10 @@ components: $ref: '#/components/schemas/Block__expandable' _links: $ref: '#/components/schemas/Links' + block_status: + type: string example: + block_status: block_status payload: collection_guarantees: - collection_id: null diff --git a/openapi/go-client-generated/docs/Block.md b/openapi/go-client-generated/docs/Block.md index c7308560c..9ccadf117 100644 --- a/openapi/go-client-generated/docs/Block.md +++ b/openapi/go-client-generated/docs/Block.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **ExecutionResult** | [***ExecutionResult**](ExecutionResult.md) | | [optional] [default to null] **Expandable** | [***BlockExpandable**](Block__expandable.md) | | [optional] [default to null] **Links** | [***Links**](Links.md) | | [optional] [default to null] +**BlockStatus** | **string** | | [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapi/go-client-generated/model_block.go b/openapi/go-client-generated/model_block.go index 3a916dad3..48d8addc7 100644 --- a/openapi/go-client-generated/model_block.go +++ b/openapi/go-client-generated/model_block.go @@ -14,4 +14,5 @@ type Block struct { ExecutionResult *ExecutionResult `json:"execution_result,omitempty"` Expandable *BlockExpandable `json:"_expandable,omitempty"` Links *Links `json:"_links,omitempty"` + BlockStatus string `json:"block_status"` }