Skip to content

Commit b6d2491

Browse files
authored
docs: remove dependency between OracleQuery and OracleResponse in OA (#2105)
1 parent 9bda7ab commit b6d2491

File tree

1 file changed

+14
-42
lines changed

1 file changed

+14
-42
lines changed

docs/swagger_v3/oracles.spec.yaml

+14-42
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,6 @@ schemas:
187187
block_time: 1595571314482
188188
height: 289005
189189
query_id": "oq_su6wv4MZsnJfopjAhd1Sx7HuBBtqhdHhahkoTPWk7bg24UWNR"
190-
response:
191-
block_hash: "mh_GWc3YBsoeCtsKW2FScDPAMz4jmK47Zdba4pPstJFJzREpWr9o"
192-
block_time: 1595577843373
193-
height: 289044
194-
query_id: "oq_su6wv4MZsnJfopjAhd1Sx7HuBBtqhdHhahkoTPWk7bg24UWNR"
195-
source_tx_hash: "th_GfXNatujAA2Uj73Cys39z9GzKXGHRiRFK1FCoKfDvhkJNWjpr"
196-
source_tx_type: "OracleRespondTx"
197-
fee: 16939000000000
198-
nonce: 2
199-
oracle_id: "ok_qJZPXvWPC7G9kFVEqNjj9NAmwMsQcpRu6E3SSCvCQuwfqpMtN"
200-
response: "5oiQ5Yqf5LqGIQ"
201-
response_ttl:
202-
type: "delta"
203-
value: 100
204-
ttl: 289541
205190
source_tx_hash: "th_gsaRRLnysE4pFH1DqY731F6LBEjhdDwnzoDyBnZjBUygoSvpJ"
206191
source_tx_type: "OracleQueryTx"
207192
fee: 17199000000000
@@ -229,8 +214,6 @@ schemas:
229214
type: integer
230215
query_id:
231216
$ref: '#/components/schemas/OracleQueryId'
232-
response:
233-
$ref: '#/components/schemas/OracleResponse'
234217
source_tx_hash:
235218
description: The hash of the transaction in which the query was created
236219
$ref: '#/components/schemas/TransactionHash'
@@ -287,26 +270,6 @@ schemas:
287270
block_time: 1595571314482
288271
height: 289005
289272
query_id: "oq_su6wv4MZsnJfopjAhd1Sx7HuBBtqhdHhahkoTPWk7bg24UWNR"
290-
query:
291-
block_hash: "mh_211yFeU3yxKgqXAaRyyxrALMDPxxTyYkrs6TwN9hWnxMHQk8Nc"
292-
block_time: 1595571314482
293-
height: 289005
294-
query_id: "oq_su6wv4MZsnJfopjAhd1Sx7HuBBtqhdHhahkoTPWk7bg24UWNR"
295-
source_tx_hash: "th_gsaRRLnysE4pFH1DqY731F6LBEjhdDwnzoDyBnZjBUygoSvpJ"
296-
source_tx_type: "OracleQueryTx"
297-
fee: 17199000000000
298-
nonce: 57
299-
oracle_id: "ok_qJZPXvWPC7G9kFVEqNjj9NAmwMsQcpRu6E3SSCvCQuwfqpMtN"
300-
query: "YmFpeGluIHF1ZXJ5"
301-
query_fee: 2000000000000000
302-
query_ttl":
303-
type: "delta"
304-
value: 100
305-
response_ttl":
306-
type: "delta"
307-
value: 100
308-
sender_id: "ak_CNcf2oywqbgmVg3FfKdbHQJfB959wrVwqfzSpdWVKZnep7nj4"
309-
ttl: 289505
310273
source_tx_hash: "th_gsaRRLnysE4pFH1DqY731F6LBEjhdDwnzoDyBnZjBUygoSvpJ"
311274
source_tx_type: "OracleRespondTx"
312275
fee: 17199000000000
@@ -329,8 +292,6 @@ schemas:
329292
type: integer
330293
query_id:
331294
$ref: '#/components/schemas/OracleQueryId'
332-
query:
333-
$ref: '#/components/schemas/OracleQuery'
334295
source_tx_hash:
335296
description: The hash of the transaction in which the response was created
336297
$ref: '#/components/schemas/TransactionHash'
@@ -360,7 +321,6 @@ schemas:
360321
- block_time
361322
- height
362323
- query_id
363-
- query
364324
- source_tx_hash
365325
- source_tx_type
366326
- fee
@@ -534,7 +494,12 @@ paths:
534494
data:
535495
type: array
536496
items:
537-
$ref: '#/components/schemas/OracleQuery'
497+
allOf:
498+
- $ref: '#/components/schemas/OracleQuery'
499+
- type: object
500+
properties:
501+
response:
502+
$ref: '#/components/schemas/OracleResponse'
538503
- $ref: '#/components/schemas/PaginatedResponse'
539504
'400':
540505
description: Bad request
@@ -574,7 +539,14 @@ paths:
574539
data:
575540
type: array
576541
items:
577-
$ref: '#/components/schemas/OracleResponse'
542+
allOf:
543+
- $ref: '#/components/schemas/OracleResponse'
544+
- type: object
545+
properties:
546+
query:
547+
$ref: '#/components/schemas/OracleQuery'
548+
required:
549+
- query
578550
- $ref: '#/components/schemas/PaginatedResponse'
579551
'400':
580552
description: Bad request

0 commit comments

Comments
 (0)