opensupplyhub / supplychaindata.exchange

supplychaindata.exchange.schema
Creative Commons Zero v1.0 Universal
4 stars 2 forks source link

Modularize SCDEX schema and enhance testing with new validation setup #15

Closed vasgat closed 5 days ago

vasgat commented 2 weeks ago

Overview

This PR introduces a modular architecture for the SCDEX schema and improves the testing framework to align with the changes.

Key Changes

Motivation

The primary motivation behind this refactor is to improve the modularity and maintainability of the SCDEX schema. The new structure makes it easier to extend, reuse, and update individual components, which helps keep the core schema clean and more approachable for adopters.

Adding "additionalProperties": true allows for more flexibility in data sharing, enabling users to add custom fields that may not be explicitly defined in the schema. This makes the schema more adaptable to various organizational needs and reduces barriers to data exchange.