Skip to content

Commit

Permalink
Switches from deprecated OKH JSON-Schemas repo to main OKH repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hoijui committed Dec 9, 2024
1 parent 5536077 commit 48d570a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion resources/okh-json-schemas
Submodule okh-json-schemas deleted from e3d81d
8 changes: 4 additions & 4 deletions src/validation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 48d570a

Please sign in to comment.