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

title: |
  Represents an Angle.

# TODO: Is there any restriction on the range of values?  The next
# version of the schema should make this explicit.
description:
  This object represents a subtype of Quantity which has units equivalent to
  radians or degrees.

examples:
  -
    - An Angle object in Degrees
    - asdf-standard-1.6.0
    - |
        !<tag:astropy.org:astropy/coordinates/angle-1.1.0>
          unit: !unit/unit-1.0.0 deg
          value: 10.0

type: object
properties:
  value:
    description: |
      A vector of one or more values
    anyOf:
      - type: number
      - $ref: "http://stsci.edu/schemas/asdf/core/ndarray-1.1.0"
  unit:
    description: |
      The unit corresponding to the values
    $ref: "http://stsci.edu/schemas/asdf/unit/unit-1.0.0"
required: [value, unit]
...
