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

Discriminate Tx Type on level of array #19

Description

@myrho

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions