Skip to content

Commit 460ba5a

Browse files
committed
fix warnings discovered in validation of async_api file
TODO: errors persist regarding the AccountInfoResponse
1 parent c9042f4 commit 460ba5a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

async_api/websocket_api_v2.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@
1010
# Submit request (As it will have transaction types as a requirement)
1111

1212
asyncapi: '2.6.0'
13+
defaultContentType: application/json
14+
id: urn:xrp-ledger:public-api-v2
15+
tags:
16+
- name: xrp-ledger
17+
description: API related to XRP Ledger
1318
info:
1419
title: XRP Ledger Public API
20+
contact:
21+
name: Ripple Dev Support
22+
url: https://ripple.com/contact
23+
1524
description: A WebSocket API used to query rippled.
1625
license:
1726
name: MIT License
@@ -36,25 +45,31 @@ channels:
3645
# a channel where the api is 'subscribed'. This is changed in 3.0.0.
3746
description: The root channel for sending requests and receiving responses.
3847
subscribe:
48+
operationId: subscribeToRoot
3949
message:
4050
oneOf:
4151
- name: AccountChannelsRequest
52+
messageId: AccountChannelsRequest
4253
contentType: application/json
4354
payload:
4455
$ref: './requests/account_channels_async_api.yaml#/components/schemas/AccountChannelsRequest'
4556
- name: AccountInfoRequest
57+
messageId: AccountInfoRequest
4658
contentType: application/json
4759
payload:
4860
$ref: './requests/account_info_async_api.yaml#/components/schemas/AccountInfoRequest'
4961
# TODO: Add additional request types for individual requests here
5062
publish:
63+
operationId: publishToRoot
5164
message:
5265
oneOf:
5366
- name: AccountChannelsResponse
67+
messageId: AccountChannelsResponse
5468
contentType: application/json
5569
payload:
5670
$ref: './requests/account_channels_async_api.yaml#/components/schemas/AccountChannelsResponse'
5771
- name: AccountInfoResponse
72+
messageId: AccountInfoResponse
5873
contentType: application/json
5974
payload:
6075
$ref: './requests/account_info_async_api.yaml#/components/schemas/AccountInfoResponseV2'

0 commit comments

Comments
 (0)