Skip to content
Snippets Groups Projects
Commit 496a62fb authored by Marco Holz's avatar Marco Holz
Browse files

Merge branch 'issue/866-publicServiceType-deprecated' into 'main'

Angabe der Version des Metadatenschemas & public service type deprecated planning#866 & planning#267

See merge request !22
parents c17b8ea0 233277fb
No related branches found
No related tags found
1 merge request!22Angabe der Version des Metadatenschemas & public service type deprecated planning#866 & planning#267
...@@ -6,8 +6,9 @@ Released schemas can be found at [schema.fitko.de/fit-connect/metadata](https:// ...@@ -6,8 +6,9 @@ Released schemas can be found at [schema.fitko.de/fit-connect/metadata](https://
## How to bundle and lint schema ## How to bundle and lint schema
```shell ```shell
yarn # install dependencies yarn # install dependencies
yarn bundle # combine files into a single schema file yarn bundle # combine files into a single schema file
yarn lint # lint yarn lint # lint
yarn test # test example schemas yarn test # test example schemas
yarn test_higher_version # test schemas that are not compatible with the current version
``` ```
...@@ -9,15 +9,16 @@ ...@@ -9,15 +9,16 @@
], ],
"properties": { "properties": {
"$schema": { "$schema": {
"description": "URI des Schemas, dem dieser Security Event Token entspricht. Zulässig sind alle Schema-URLs mit enthaltener Version 1.x.y, wobei x und y beliebige Minor- und Patch-Versionen gemäß https://semver.org/ sein können.", "description": "URI des Schemas, dem diese Metadaten entsprechen. Zulässig sind alle Schema-URLs mit enthaltener Version 1.x.y, wobei x und y beliebige Minor- und Patch-Versionen gemäß https://semver.org/ sein können.",
"type": "string", "type": "string",
"pattern": "^https://schema\\.fitko\\.de/fit-connect/metadata/1\\.\\d+\\.\\d+/metadata\\.schema\\.json$" "pattern": "^https:\\/\\/schema\\.fitko\\.de\\/fit-connect\\/metadata\\/1\\.\\d+\\.\\d+\\/metadata\\.schema\\.json$"
}, },
"contentStructure": { "contentStructure": {
"$ref": "./definitions/contentStructure.json" "$ref": "./definitions/contentStructure.json"
}, },
"publicServiceType": { "publicServiceType": {
"$ref": "./definitions/publicServiceType.json" "$ref": "./definitions/publicServiceType.json",
"deprecated": true
}, },
"authenticationInformation": { "authenticationInformation": {
"$ref": "./definitions/authenticationInformation.json" "$ref": "./definitions/authenticationInformation.json"
......
...@@ -22,6 +22,6 @@ if (args.length !== 2) { ...@@ -22,6 +22,6 @@ if (args.length !== 2) {
let parser = new $RefParser() let parser = new $RefParser()
let schema = await parser.bundle(args[0]) let schema = await parser.bundle(args[0])
fs.writeFileSync(args[1], JSON.stringify(schema)) fs.writeFileSync(args[1], JSON.stringify(schema).replaceAll("%24defs", "$defs"))
})() })()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment