Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify Data as any shape #84

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/base.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# hdmf-schema-language=2.0.2
# hdmf-schema-language=3.0.0
datasets:
- data_type_def: Data
doc: An abstract data type for a dataset.
Expand Down
1 change: 1 addition & 0 deletions common/experimental.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# hdmf-schema-language=3.0.0
groups: []
datasets:
- data_type_def: EnumData
Expand Down
2 changes: 1 addition & 1 deletion common/namespace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# hdmf-schema-language=2.0.2
# hdmf-schema-language=3.0.0
namespaces:
- name: hdmf-common
doc: Common data structures provided by HDMF
Expand Down
2 changes: 1 addition & 1 deletion common/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# hdmf-schema-language=2.0.2
# hdmf-schema-language=3.0.0
groups:
- data_type_def: HERD
data_type_inc: Container
Expand Down
2 changes: 1 addition & 1 deletion common/sparse.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# hdmf-schema-language=2.0.2
# hdmf-schema-language=3.0.0
groups:
- data_type_def: CSRMatrix
data_type_inc: Container
Expand Down
2 changes: 1 addition & 1 deletion common/table.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# hdmf-schema-language=2.0.2
# hdmf-schema-language=3.0.0
datasets:

- data_type_def: VectorData
Expand Down
20 changes: 10 additions & 10 deletions hdmf-common.schema.json → hdmf.schema.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "hdmf-common.schema.json",
"title": "Schema for the HDMF Common specification",
"description": "A schema for validating HDMF Common YAML Files",
"version": "1.8.0",
"$id": "hdmf.schema.json",
"title": "Schema for the HDMF language specification",
"description": "A schema for validating HDMF YAML files and HDMF extensions",
"version": "3.0.0-beta",
"type": "object",
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -98,10 +98,10 @@
"int16",
"int8",
"uint",
"uint64",
"uint32",
"uint16",
"uint8",
"uint64",
"numeric",
"text",
"utf",
Expand Down Expand Up @@ -141,6 +141,9 @@
{
"type": "array",
"items": {"$ref": "#/definitions/shape_spec"}
},
{
"const": "scalar"
}
]
},
Expand Down Expand Up @@ -205,7 +208,6 @@
"data_type_def": {"$ref": "#/definitions/protectedString"},
"data_type_inc": {"$ref": "#/definitions/protectedString"},
"quantity": {"$ref": "#/definitions/quantity"},
"linkable": {"type": "boolean"},
"datasets": {"$ref": "#/definitions/datasets"},
"links": {"$ref": "#/definitions/links"},
"groups": {"$ref": "#/definitions/groups"},
Expand Down Expand Up @@ -269,12 +271,10 @@
"data_type_def": {"$ref": "#/definitions/protectedString"},
"data_type_inc": {"$ref": "#/definitions/protectedString"},
"quantity": {"$ref": "#/definitions/quantity"},
"linkable": {"type": "boolean"},
"attributes": {"$ref": "#/definitions/attributes"},
"value": {"description": "Optional constant, fixed value for the attribute."},
"default_value": {"description": "Optional default value for variable-valued attributes."}
"value": {"description": "Optional constant, fixed value for the dataset."}
}
}
}
}
}
}
Loading