diff --git a/src/core/v1/kuben-resource.schema.json b/src/core/v1/kuben-resource.schema.json index 69025b0..de97249 100644 --- a/src/core/v1/kuben-resource.schema.json +++ b/src/core/v1/kuben-resource.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://dapla.ssb.no/core/v1/kuben-resource.schema.json", + "$id": "https://statisticsnorway.github.io/dapla-kuben-resource-model/core/v1/kuben-resource.schema.json", "title": "KubenResource", "description": "Base definition of how Kuben resources should be defined.", "type": "object", diff --git a/src/partials/v1/team-info-metadata.schema.json b/src/partials/v1/team-info-metadata.schema.json index 9bbf492..d9d7970 100644 --- a/src/partials/v1/team-info-metadata.schema.json +++ b/src/partials/v1/team-info-metadata.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://dapla.ssb.no/core/v1/team-info-metadata.schema.json", + "$id": "https://statisticsnorway.github.io/dapla-kuben-resource-model/partials/v1/team-info-metadata.schema.json", "description": "The metadata fields common to all kinds/entities", "examples": [ { diff --git a/src/v1/additional-team-info.schema.json b/src/v1/additional-team-info.schema.json index a27fcdb..a19f97a 100644 --- a/src/v1/additional-team-info.schema.json +++ b/src/v1/additional-team-info.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://dapla.ssb.no/kuben/v1/additional-team-info.schema.json", + "$id": "https://statisticsnorway.github.io/dapla-kuben-resource-model/v1/additional-team-info.schema.json", "title": "AdditionalTeamInfo", "description": "Additional fields to express custom team information", "$comment": "Information the team can add without any restrictions on what kind of data is specified. Can be useful in situations where teams want to express or communicate some kind of information without it fitting the defined team info model.", @@ -32,7 +32,8 @@ ] }, "metadata": { - "$ref": "../partials/v1/team-info-metadata.schema.json", + "$comment": "Resolves to the schema hosted on github pages. Change to '../partials/v1/team-info-metadata.schema.json' for local development. Suboptimal solution, but pre-commit and jsonschema2pojo behaves differently, and we think it's more important that pre-commit works.", + "$ref": "https://statisticsnorway.github.io/dapla-kuben-resource-model/partials/v1/team-info-metadata.schema.json", "required": [ "name", "team_name" diff --git a/src/v1/kuben-team-definition.schema.json b/src/v1/kuben-team-definition.schema.json index f7e5a33..33e076e 100644 --- a/src/v1/kuben-team-definition.schema.json +++ b/src/v1/kuben-team-definition.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://dapla.ssb.no/kuben/v1/platform-manged-team-metadata.schema.json", + "$id": "https://statisticsnorway.github.io/dapla-kuben-resource-model/v1/kuben-team-definition.schema.json", "title": "KubenTeamDefinition", "description": "The definition of a team inside Kuben", "$comment": "Fields that are important for the technical configuration of a team", diff --git a/src/v1/platform-managed-team-info.schema.json b/src/v1/platform-managed-team-info.schema.json index e3aab51..bd243e8 100644 --- a/src/v1/platform-managed-team-info.schema.json +++ b/src/v1/platform-managed-team-info.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://dapla.ssb.no/kuben/v1/platform-managed-team-info.schema.json", + "$id": "https://statisticsnorway.github.io/dapla-kuben-resource-model/v1/platform-managed-team-info.schema.json", "title": "PlatformManagedTeamInfo", "description": "Information about the team that the platform team manages.", "$comment": "Team information that is not strictly required for configuration of the team", @@ -31,7 +31,8 @@ ] }, "metadata": { - "$ref": "../partials/v1/team-info-metadata.schema.json", + "$comment": "Resolves to the schema hosted on github pages. Change to '../partials/v1/team-info-metadata.schema.json' for local development. Suboptimal solution, but pre-commit and jsonschema2pojo behaves differently, and we think it's more important that pre-commit works.", + "$ref": "https://statisticsnorway.github.io/dapla-kuben-resource-model/partials/v1/team-info-metadata.schema.json", "required": [ "team_name" ] diff --git a/src/v1/team-info.schema.json b/src/v1/team-info.schema.json index 16c4f81..06dd169 100644 --- a/src/v1/team-info.schema.json +++ b/src/v1/team-info.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://dapla.ssb.no/kuben/v1/team-info.schema.json", + "$id": "https://statisticsnorway.github.io/dapla-kuben-resource-model/v1/team-info.schema.json", "title": "TeamInfo", "description": "Predefined metadata fields that the team manages", "examples": [ @@ -42,7 +42,8 @@ ] }, "metadata": { - "$ref": "../partials/v1/team-info-metadata.schema.json", + "$comment": "Resolves to the schema hosted on github pages. Change to '../partials/v1/team-info-metadata.schema.json' for local development. Suboptimal solution, but pre-commit and jsonschema2pojo behaves differently, and we think it's more important that pre-commit works.", + "$ref": "https://statisticsnorway.github.io/dapla-kuben-resource-model/partials/v1/team-info-metadata.schema.json", "required": [ "team_name" ]