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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bba211156f3a53f7dd9988918fd567d7e0d396f16bf9a22f92016c5fd27eda5a
4
- data.tar.gz: e6c09514b77410c3e55a17dad56b50fa3fb1be870c3172dc9250224c171224b3
3
+ metadata.gz: e583ad055e61c85690c0695745bfd843e1d8b9388d4e52ddba341c76eb11bcf7
4
+ data.tar.gz: aa9a72d5bff30957f7240610a05c1e4aa3fbc2e91fcf9f28dc7fa92559e64558
5
5
  SHA512:
6
- metadata.gz: 9749212ecff6cac96f1a307446ee485ad456dcc022546cac3a4f00cc04374c93ab3693607b6d5a77e665323d9deb8fa160e7239d04e457f1b68461b816693f83
7
- data.tar.gz: 848fffe56cb6d8a494431899b4d43a5bd200fd68d54bb61df2fbd7147d62bacdeb5b4f592f9fe0b4fb10d4bb1ee038ef85e5eeb2d507f9cc529504acf2df672e
6
+ metadata.gz: 1b4a70b3d2b5fd1448613c01d4b40438d1688ce30c3ab63bcdcd9102cfad4f9a67e2300f047039bf92b69a8c99805a2cfe6a95744ec40b93743318eef48251b2
7
+ data.tar.gz: 3ce86f29c6c7f2db05e996389c8e306aad65c5586e093a9b6cdd45162a8e23f95fb77c6292430e2a77fea93d3ef394d062be46151af0e1e29a3a9f0608e313af
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AsciiChemModel
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
@@ -14,17 +14,26 @@ properties:
14
14
  nodes:
15
15
  type: array
16
16
  description: |
17
- Top-level nodes. Items reference the shipped node schemas;
18
- node types not yet shipped (electron-configuration,
19
- embedded-math, text, name, mechanism, spectrum, crystal,
20
- zmatrix, calculation) are TODO.impl/30 and referenced loosely
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
@@ -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
- $ref: "atom.yaml"
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
@@ -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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciichem-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - AsciiChem contributors