From 481554c5738ede71801d75baf2ae9e7348bdc384 Mon Sep 17 00:00:00 2001 From: Kostiantyn Dvornik Date: Thu, 30 Nov 2023 15:46:26 +0200 Subject: [PATCH] update: add lattice type extended --- .../structural/lattice/lattice_bravais.json | 18 +---------- .../structural/lattice/type_enum.json | 23 +++++++++++++ .../lattice/type_extended_enum.json | 32 +++++++++++++++++++ 3 files changed, 56 insertions(+), 17 deletions(-) create mode 100644 schema/properties_directory/structural/lattice/type_enum.json create mode 100644 schema/properties_directory/structural/lattice/type_extended_enum.json diff --git a/schema/properties_directory/structural/lattice/lattice_bravais.json b/schema/properties_directory/structural/lattice/lattice_bravais.json index 621c21bb7..8d5e749a5 100644 --- a/schema/properties_directory/structural/lattice/lattice_bravais.json +++ b/schema/properties_directory/structural/lattice/lattice_bravais.json @@ -10,23 +10,7 @@ "properties": { "type": { "description": "Bravais lattice type in short notation", - "type": "string", - "enum": [ - "CUB", - "BCC", - "FCC", - "TET", - "MCL", - "ORC", - "ORCC", - "ORCF", - "ORCI", - "HEX", - "BCT", - "TRI", - "MCLC", - "RHL" - ] + "$ref": "type_enum.json" }, "units": { "type": "object", diff --git a/schema/properties_directory/structural/lattice/type_enum.json b/schema/properties_directory/structural/lattice/type_enum.json new file mode 100644 index 000000000..f13d95300 --- /dev/null +++ b/schema/properties_directory/structural/lattice/type_enum.json @@ -0,0 +1,23 @@ +{ + "$id": "properties-directory/structural/lattice/type-enum", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "lattice type schema", + + "type": "string", + "enum": [ + "CUB", + "BCC", + "FCC", + "TET", + "MCL", + "ORC", + "ORCC", + "ORCF", + "ORCI", + "HEX", + "BCT", + "TRI", + "MCLC", + "RHL" + ] +} diff --git a/schema/properties_directory/structural/lattice/type_extended_enum.json b/schema/properties_directory/structural/lattice/type_extended_enum.json new file mode 100644 index 000000000..c8165c362 --- /dev/null +++ b/schema/properties_directory/structural/lattice/type_extended_enum.json @@ -0,0 +1,32 @@ +{ + "$id": "properties-directory/structural/lattice/type-extended-enum", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "lattice type extended schema", + "type": "string", + "enum": [ + "BCC", + "BCT-1", + "BCT-2", + "CUB", + "FCC", + "HEX", + "MCL", + "MCLC-1", + "MCLC-2", + "MCLC-3", + "MCLC-4", + "MCLC-5", + "ORC", + "ORCC", + "ORCF-1", + "ORCF-2", + "ORCF-3", + "ORCI", + "RHL-1", + "RHL-2", + "TET", + "TRI_1a", + "TRI_2a", + "TRI_1b" + ] +}