opensource-observer / oss-directory

A curated directory of open source software (OSS) projects and their associated artifacts
https://www.opensource.observer
Apache License 2.0
51 stars 135 forks source link

Create a new `oli-address` JSON schema type #472

Open ryscheng opened 2 months ago

ryscheng commented 2 months ago

For our validation logic, we currently using JSON schema.

I'd suggest creating a new type here: https://github.com/opensource-observer/oss-directory/tree/main/src/resources/schema

called oli-address.json, which should comply with the OLI definitions. It should look something like they show in their sample data. https://github.com/openlabelsinitiative/OLI/blob/main/sample_data/op-mainnet_top_100_contracts_by_txcount_2024_07_24.json

Then in the project.json type, let's turn the blockchain section into a union type between blockchain-address and oli-address. This will make it easier for us to migrate addresses incrementally.