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

Add metadata attribute #60

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
33 changes: 33 additions & 0 deletions latticejson/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
"type": "string",
"description": "Additional information about the lattice"
},
"metadata": {
"type": "object",
"description": "Metadata",
"additionalProperties": false,
"properties": {
"creator": {
"$ref": "#/definitions/Person"
},
"editors": {
"type": "array",
"items": {
"$ref": "#/definitions/Person"
}
}
}
},
"energy": {
"type": "number",
"description": "Energy of the particle beam in GeV",
Expand Down Expand Up @@ -74,6 +90,23 @@
}
},
"definitions": {
"Person": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The person's name."
},
"email": {
"type": "string",
"description": "The person's email."
}
}
},
"Lattice": {
"type": "array",
"items": {
Expand Down