oss-directory icon indicating copy to clipboard operation
oss-directory copied to clipboard

Create a new `oli-address` JSON schema type

Open ryscheng opened this issue 1 year ago • 0 comments

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.

ryscheng avatar Aug 28 '24 17:08 ryscheng