-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndarray schema 1.0 allows for objects with no required items. This means that many objects (including empty objects) will validate against this schema. Schemas that reference ndarray were updated to use the new 1.1 schema.
- Loading branch information
Showing
14 changed files
with
867 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" | ||
id: "http://stsci.edu/schemas/asdf/core/column-1.1.0" | ||
|
||
title: > | ||
A column in a table. | ||
description: | | ||
Each column contains a name and an array of data, and an optional description | ||
and unit. | ||
type: object | ||
properties: | ||
name: | ||
description: | | ||
The name of the column. Each name in a | ||
[table](http://stsci.edu/schemas/asdf/core/table-1.1.0) must be | ||
unique. | ||
type: string | ||
pattern: "[A-Za-z_][A-Za-z0-9_]*" | ||
|
||
data: | ||
description: | | ||
The array data for the column. | ||
allOf: | ||
- $ref: ndarray-1.1.0 | ||
|
||
description: | ||
description: | | ||
An optional description of the column. | ||
type: string | ||
default: '' | ||
|
||
unit: | ||
description: | ||
An optional unit for the column. | ||
allOf: | ||
- $ref: ../unit/unit-1.1.0 | ||
|
||
meta: | ||
description: | ||
Additional free-form metadata about the column. | ||
type: object | ||
default: {} | ||
|
||
required: [name, data] | ||
additionalProperties: false | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" | ||
id: "http://stsci.edu/schemas/asdf/core/integer-1.1.0" | ||
title: Arbitrary precision integer value. | ||
description: | | ||
Represents an arbitrarily large integer value. | ||
examples: | ||
- | ||
- An integer value that is stored using an internal array | ||
- | | ||
!core/integer-1.1.0 | ||
sign: + | ||
string: '1193942770599561143856918438330' | ||
words: !core/ndarray-1.1.0 | ||
source: 0 | ||
datatype: uint32 | ||
byteorder: little | ||
shape: [4] | ||
- | ||
- The same integer value is stored using an inline array | ||
- | | ||
!core/integer-1.1.0 | ||
sign: + | ||
string: '1193942770599561143856918438330' | ||
words: !core/ndarray-1.1.0 | ||
data: [1103110586, 1590521629, 299257845, 15] | ||
datatype: uint32 | ||
shape: [4] | ||
type: object | ||
properties: | ||
words: | ||
$ref: "ndarray-1.1.0" | ||
description: | | ||
An array of unsigned 32-bit words representing the integer value, stored | ||
as little endian (i.e. the first word of the array represents the least | ||
significant bits of the integer value). | ||
sign: | ||
type: string | ||
pattern: "^[+-]$" | ||
description: | | ||
String indicating whether the integer value is positive or negative. | ||
string: | ||
type: string | ||
description: | | ||
Optional string representation of the integer value. This field is only | ||
intended to improve readability for humans, and therefore no assumptions | ||
about format should be made by ASDF readers. | ||
required: [words, sign] | ||
... |
Oops, something went wrong.