Open ryscheng opened 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
oli-address.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.
project.json
blockchain
blockchain-address
oli-address
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.jsonThen in the
project.json
type, let's turn theblockchain
section into a union type betweenblockchain-address
andoli-address
. This will make it easier for us to migrate addresses incrementally.