https://github.com/eurocontrol-swim/service-schema-version-mapper
You can use this project to help you update your old SWIM Registry Service Descriptions to the latest version.
https://github.com/eurocontrol-swim/service-schema-version-mapper
json json-schema swim
Last synced: 27 days ago
JSON representation
You can use this project to help you update your old SWIM Registry Service Descriptions to the latest version.
- Host: GitHub
- URL: https://github.com/eurocontrol-swim/service-schema-version-mapper
- Owner: eurocontrol-swim
- License: other
- Created: 2021-05-28T14:10:58.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T12:06:02.000Z (about 4 years ago)
- Last Synced: 2025-04-22T13:01:36.594Z (about 1 month ago)
- Topics: json, json-schema, swim
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SWIM Registry Service Description Mapping
This repository can be used as a template to map Service Descriptions written against
a previous version of the Service Description JSON Schema to a more recent one.## Usage
### Repl.it
This repository can be used directly in [repl.it](https://repl.it), which provides the user with a pre-configured
Python environment ready to use. To do so, it suffices to:1. Create a New repl and choose the option "Import from GitHub" and provide the following URL: [https://github.com/eurocontrol-swim/service-schema-version-mapper](https://github.com/eurocontrol-swim/service-schema-version-mapper)
2. Click the blue button "Import from GitHub".
3. When the repository finishes loading into the repl.it environment you can click the "Run ▶" button which will execute the *mapping.py* script. The first time it runs it will automatically install some dependencies.Optional:
- You can tune which input or output file to use in the *mapping.py* file by simply editing the variables *input_file_path* and *output_file_path*.
- You can add new Service Description Files into the *input* folder which you can then point to in the *mapping.py* script by changing appropriately the *input_file_path* variable.
- You can fine-tune the mapping performed by the script by editing the *jsonize-mapping.json* file which contains the rules applied by the mapping. To read more about how the mapping works behind the scene you can check the following Python library: [Jsonize](https://github.com/eurocontrol-swim/jsonize)