Skip to content

Commit 73ef9f1

Browse files
committed
[WIP] Define schemas for the BIMP system of units (2019)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent fe29fd6 commit 73ef9f1

File tree

1,550 files changed

+56627
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,550 files changed

+56627
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
test:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: sourcemeta/jsonschema@v12.4.0
20+
- uses: sourcemeta/jsonschema@v12.5.0
2121
- uses: actions/checkout@v4
2222
- run: make lint
2323
- run: make test

meta/schemas-root.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"x-license": {
4242
"const": "https://github.com/sourcemeta/std/blob/main/LICENSE"
4343
},
44+
"x-symbol": {
45+
"type": "string"
46+
},
4447
"x-links": {
4548
"type": "array",
4649
"minItems": 1,
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Attoampere",
4+
"description": "A multiple of ampere equal to 1e-18 ampere",
5+
"examples": [ 0, 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 1e-18,
9+
"x-symbol": "aA",
10+
"$ref": "../unit/ampere.json"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Attocandela",
4+
"description": "A multiple of candela equal to 1e-18 candela",
5+
"examples": [ 0, 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 1e-18,
9+
"x-symbol": "acd",
10+
"$ref": "../unit/candela.json"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Attogram",
4+
"description": "A multiple of mass equal to 1e-18 gram, which is 1e-21 kilogram",
5+
"examples": [ 0, 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 1e-21,
9+
"x-symbol": "ag",
10+
"$ref": "../unit/kilogram.json"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Attokelvin",
4+
"description": "A multiple of kelvin equal to 1e-18 kelvin",
5+
"examples": [ 0, 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 1e-18,
9+
"x-symbol": "aK",
10+
"$ref": "../unit/kelvin.json"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Attometre",
4+
"description": "A multiple of metre equal to 1e-18 metre",
5+
"examples": [ 0, 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 1e-18,
9+
"x-symbol": "am",
10+
"$ref": "../unit/metre.json"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Attomole",
4+
"description": "A multiple of mole equal to 1e-18 mole",
5+
"examples": [ 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 1e-18,
9+
"x-symbol": "amol",
10+
"$ref": "../unit/mole.json"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Attosecond",
4+
"description": "A multiple of second equal to 1e-18 second",
5+
"examples": [ 0, 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 1e-18,
9+
"x-symbol": "as",
10+
"$ref": "../unit/second.json"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Centiampere",
4+
"description": "A multiple of ampere equal to 1e-2 ampere",
5+
"examples": [ 0, 1, 100, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [ "https://www.bipm.org/en/publications/si-brochure" ],
8+
"x-prefix-factor": 0.01,
9+
"x-symbol": "cA",
10+
"$ref": "../unit/ampere.json"
11+
}

0 commit comments

Comments
 (0)