File: custom_schema.yaml

package info (click to toggle)
python-asdf 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,952 kB
  • sloc: python: 23,957; makefile: 123
file content (31 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
title: |
  Top-level custom schema used for testing.

description: |
  This schema is used to test the custom schema validation mechanism in ASDF.

type: object
properties:
  foo:
    description: |
      Your generic kind of foo.
    type: object
    properties:
      x:
        type: number
      y:
        type: number

  bar:
    type: object
    properties:
      a:
        type: string
      b:
        type: string

required: [foo, bar]
additionalProperties: true