diff --git a/.gitmodules b/.gitmodules index cf24bf1..e9373d2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,9 +2,6 @@ # # SPDX-License-Identifier: Unlicense -[submodule "resources/okh-json-schemas"] - path = resources/okh-json-schemas - url = https://github.com/OPEN-NEXT/LOSH-OKH-JSON-Schemas.git [submodule "resources/osh-file-types"] path = resources/osh-file-types url = https://gitlab.com/OSEGermany/osh-file-types.git diff --git a/resources/okh-json-schemas b/resources/okh-json-schemas deleted file mode 160000 index e3d81dc..0000000 --- a/resources/okh-json-schemas +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e3d81dcef001e9e54d9ec926fa2a039b800f3b6b diff --git a/src/validation/mod.rs b/src/validation/mod.rs index f5268ea..7d7e685 100644 --- a/src/validation/mod.rs +++ b/src/validation/mod.rs @@ -11,12 +11,12 @@ use std::{fmt, fs, path::Path}; const SCHEMA_OKH_LOSH: &str = include_str!(concat!( env!("CARGO_MANIFEST_DIR"), - "/resources/okh-json-schemas/okh-losh.schema.json" -)); // TODO de-duplicate; is also under $HOME/Projects/OSEG/repos/ + "/resources/okh/src/schema/okh.schema.json" +)); const SCHEMA_OKH_V1: &str = include_str!(concat!( env!("CARGO_MANIFEST_DIR"), - "/resources/okh-json-schemas/okh-v1.schema.json" -)); // TODO de-duplicate; is also under $HOME/Projects/OSEG/repos/ + "/resources/okh/src/schema/okh-v1.schema.json" +)); #[derive(thiserror::Error, Debug)] pub enum Error {