asciichem-model 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asciichem_model/version.rb +1 -1
- data/schemas/v1/formula.yaml +14 -5
- data/schemas/v1/molecule.yaml +6 -2
- data/schemas/v1/types/formula.ts +1 -1
- data/schemas/v1/types/molecule.ts +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e583ad055e61c85690c0695745bfd843e1d8b9388d4e52ddba341c76eb11bcf7
|
|
4
|
+
data.tar.gz: aa9a72d5bff30957f7240610a05c1e4aa3fbc2e91fcf9f28dc7fa92559e64558
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b4a70b3d2b5fd1448613c01d4b40438d1688ce30c3ab63bcdcd9102cfad4f9a67e2300f047039bf92b69a8c99805a2cfe6a95744ec40b93743318eef48251b2
|
|
7
|
+
data.tar.gz: 3ce86f29c6c7f2db05e996389c8e306aad65c5586e093a9b6cdd45162a8e23f95fb77c6292430e2a77fea93d3ef394d062be46151af0e1e29a3a9f0608e313af
|
data/schemas/v1/formula.yaml
CHANGED
|
@@ -14,17 +14,26 @@ properties:
|
|
|
14
14
|
nodes:
|
|
15
15
|
type: array
|
|
16
16
|
description: |
|
|
17
|
-
Top-level nodes
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
until their schemas land.
|
|
17
|
+
Top-level nodes — mirrors the reference grammar's node rule:
|
|
18
|
+
reactions, cascades, electron configurations, crystals,
|
|
19
|
+
spectra, calculations, z-matrices, mechanisms, (annotated)
|
|
20
|
+
molecules, groups, atoms, embedded math, and text.
|
|
22
21
|
items:
|
|
23
22
|
anyOf:
|
|
24
23
|
- $ref: "atom.yaml"
|
|
25
24
|
- $ref: "molecule.yaml"
|
|
26
25
|
- $ref: "group.yaml"
|
|
26
|
+
- $ref: "bond.yaml"
|
|
27
27
|
- $ref: "reaction.yaml"
|
|
28
28
|
- $ref: "reaction-cascade.yaml"
|
|
29
|
+
- $ref: "electron-configuration.yaml"
|
|
30
|
+
- $ref: "embedded-math.yaml"
|
|
31
|
+
- $ref: "text.yaml"
|
|
32
|
+
- $ref: "name.yaml"
|
|
29
33
|
- $ref: "identifier.yaml"
|
|
34
|
+
- $ref: "mechanism.yaml"
|
|
35
|
+
- $ref: "spectrum.yaml"
|
|
36
|
+
- $ref: "crystal.yaml"
|
|
37
|
+
- $ref: "zmatrix.yaml"
|
|
38
|
+
- $ref: "calculation.yaml"
|
|
30
39
|
additionalProperties: false
|
data/schemas/v1/molecule.yaml
CHANGED
|
@@ -12,9 +12,13 @@ properties:
|
|
|
12
12
|
const: molecule
|
|
13
13
|
nodes:
|
|
14
14
|
type: array
|
|
15
|
-
description: Ordered child nodes (atoms, groups, nested molecules).
|
|
15
|
+
description: Ordered child nodes (atoms, bonds, groups, nested molecules).
|
|
16
16
|
items:
|
|
17
|
-
|
|
17
|
+
anyOf:
|
|
18
|
+
- $ref: "atom.yaml"
|
|
19
|
+
- $ref: "bond.yaml"
|
|
20
|
+
- $ref: "group.yaml"
|
|
21
|
+
- $ref: "molecule.yaml"
|
|
18
22
|
minItems: 1
|
|
19
23
|
coefficient:
|
|
20
24
|
type: string
|
data/schemas/v1/types/formula.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated from schemas/v1/formula.yaml — do not edit; regenerate.
|
|
2
2
|
export interface Formula {
|
|
3
3
|
readonly type: "formula";
|
|
4
|
-
readonly nodes: (Atom | Molecule | Group | Reaction | ReactionCascade | Identifier)[];
|
|
4
|
+
readonly nodes: (Atom | Molecule | Group | Bond | Reaction | ReactionCascade | ElectronConfiguration | EmbeddedMath | Text | Name | Identifier | Mechanism | Spectrum | Crystal | ZMatrix | Calculation)[];
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated from schemas/v1/molecule.yaml — do not edit; regenerate.
|
|
2
2
|
export interface Molecule {
|
|
3
3
|
readonly type: "molecule";
|
|
4
|
-
readonly nodes: Atom[];
|
|
4
|
+
readonly nodes: (Atom | Bond | Group | Molecule)[];
|
|
5
5
|
readonly coefficient?: string;
|
|
6
6
|
readonly identifiers?: Identifier[];
|
|
7
7
|
}
|