1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://nowhere.org/schemas/custom/fraction-1.0.0"
title: An example custom type for handling fractions
tag: "tag:nowhere.org:custom/fraction-1.0.0"
# Using anyOf here is a cheap hack to allow us to support both formats in an
# example that is used in the documentation (see docs/asdf/extensions.rst).
anyOf:
- type: array
items:
type: integer
minItems: 2
maxItems: 2
- type: object
properties:
numerator:
type: integer
denominator:
type: integer
...
|