Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Discriminate Tx Type on level of array #19

Open
myrho opened this issue May 20, 2022 · 0 comments
Open

Discriminate Tx Type on level of array #19

myrho opened this issue May 20, 2022 · 0 comments

Comments

@myrho
Copy link
Contributor

myrho commented May 20, 2022

There are two types of tx: tx_account and tx_utxo/address_tx_utxo. They are discriminated for each array item. However, they could be already discriminated one level higher, eg:

    address_txs:
      type: object
      required:
        - address_txs
      properties:
        next_page: 
          $ref: '#/components/schemas/next_page'
        oneOf:
        - $ref: '#/components/schemas/address_txs_utxo'
        - $ref: '#/components/schemas/txs_account'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant