Skip to content

Commit

Permalink
Update schema to use language 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Aug 8, 2024
1 parent f4a50b4 commit b6f8882
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
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": "Any"
}
]
},
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."}
}
}
}
}
}
}

0 comments on commit b6f8882

Please sign in to comment.