%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://astropy.org/schemas/astropy/coordinates/spectralcoord-1.2.0"

title: >
  Represents a SpectralCoord object from astropy

type: object
properties:
  value:
    description: |
      A vector of one or more values
    anyOf:
      - type: number
      - tag: "tag:stsci.edu:asdf/core/ndarray-1.*"
  unit:
    description: |
      The unit corresponding to the values
    anyOf:
      - tag: "tag:stsci.edu:asdf/unit/unit-1.*"
      - tag: "tag:astropy.org:astropy/units/unit-1.*"
  observer:
    description: |
      The observer frame for this coordinate
    $ref: "frames/baseframe-1.2.0"
  target:
    description: |
      The target frame for this coordinate
    $ref: "frames/baseframe-1.2.0"
required: [value, unit]
...
