units/equivalency-1.0.0

Represents unit equivalency.

Description

Supports serialization of equivalencies between units in certain contexts

Outline

Schema Definitions

array

No length restriction

Items in the array are restricted to the following types:

Internal Definitions

  • equivalency

    object

    This type is an object with the following properties:

    • name

      string
      No length restriction
    • kwargs_names

      array
      No length restriction

      Items in the array are restricted to the following types:

      string

      No length restriction
    • kwargs_values

      array
      No length restriction

      Items in the array must be any of the following types:

  • Original Schema

    %YAML 1.1
    ---
    $schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
    id: "http://astropy.org/schemas/astropy/units/equivalency-1.0.0"
    
    title: |
      Represents unit equivalency.
    
    description: |
      Supports serialization of equivalencies between units
      in certain contexts
    
    definitions:
      equivalency:
        type: object
        properties:
          name:
            type: string
          kwargs_names:
            type: array
            items:
              type: string
          kwargs_values:
            type: array
            items:
              anyOf:
                - $ref: "http://stsci.edu/schemas/asdf/unit/quantity-1.1.0"
                - type: number
                - type: "null"
    
    type: array
    items:
      $ref: "#/definitions/equivalency"
    ...