From bb55177ab15438805b5030015340fae70f5ffc0a Mon Sep 17 00:00:00 2001 From: Daniel Klein Date: Mon, 16 Sep 2024 20:53:05 +0200 Subject: [PATCH] fix(schema): ecosystem type, add rank positive and negative texts --- schema/project.yaml | 6 +++--- schema/rank.yaml | 6 +++++- src/ranks.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 4 deletions(-) diff --git a/schema/project.yaml b/schema/project.yaml index f69e48db..f0ea53e6 100644 --- a/schema/project.yaml +++ b/schema/project.yaml @@ -25,10 +25,10 @@ properties: type: string pattern: '^[A-Z0-9-]+$' ecosystem: - anyOf: [{type: array}, {type: string}] + type: array items: type: string - pattern: '^[A-Z0-9-]+$' + pattern: '^[a-z0-9-]+$' project_type: type: string description: @@ -320,4 +320,4 @@ properties: type: array items: type: string - pattern: '^[a-z0-9-]+$' \ No newline at end of file + pattern: '^[a-z0-9-]+$' diff --git a/schema/rank.yaml b/schema/rank.yaml index e34a9e89..d37c1acc 100644 --- a/schema/rank.yaml +++ b/schema/rank.yaml @@ -13,6 +13,10 @@ properties: type: string label: type: string + positive: + type: string + negative: + type: string condition: type: object properties: @@ -38,4 +42,4 @@ required: - id - name - references -additionalProperties: false \ No newline at end of file +additionalProperties: false diff --git a/src/ranks.yaml b/src/ranks.yaml index 3a056c56..1ec1b4a6 100644 --- a/src/ranks.yaml +++ b/src/ranks.yaml @@ -3,51 +3,71 @@ references: - field: team.teammembers label: Team + positive: 'Member' + negative: 'Anonymous' condition: minLength: 1 points: 10 - field: links.docs label: Documentation + positive: 'Link' + negative: 'Not available' condition: exists: true points: 10 - field: links.github label: Github + positive: 'Link' + negative: 'Not available' condition: exists: true points: 10 - field: links.twitter label: Twitter + positive: 'Link' + negative: 'Not available' condition: exists: true points: 1 - field: links.telegram label: Telegram + positive: 'Link' + negative: 'Not available' condition: exists: true points: 1 - field: links.discord label: Discord + positive: 'Link' + negative: 'Not available' condition: exists: true points: 1 - field: links.lens label: Lens + positive: 'Link' + negative: 'Not available' condition: exists: true points: 1 - field: links.farcaster label: Farcaster + positive: 'Link' + negative: 'Not available' condition: exists: true points: 1 - field: links.whitepaper label: Whitepaper + positive: 'Link' + negative: 'Not available' condition: exists: true points: 10 - field: funding.value label: Funding + positive: 'Investment' + negative: 'Not available' condition: exists: true points: 10 @@ -57,26 +77,36 @@ references: - field: project_status.mainnet label: Mainnet + positive: 'Yes' + negative: 'No' condition: exists: true points: 10 - field: blockchain_features.opensource label: Open Source + positive: 'Yes' + negative: 'No' condition: equals: true points: 20 - field: blockchain_features.asset_custody_type label: Non Custody + positive: 'None' + negative: 'Custodial' condition: equals: non-custody points: 10 - field: blockchain_features.upgradability.enabled label: Upgradability + positive: 'Disabled' + negative: 'Enabled' condition: equals: false points: 10 - field: audits label: Audits + positive: 'Audit' + negative: 'None' condition: minLength: 1 points: 10 @@ -86,21 +116,29 @@ references: - field: privacy_policy.link label: Privacy Policy + positive: 'Link' + negative: 'Not available' condition: exists: true points: 10 - field: traceability.kyc label: KYC + positive: 'No' + negative: 'Yes' condition: equals: false points: 10 - field: compliance label: Compliance + positive: 'No' + negative: 'OFAC' condition: equals: true points: 5 - field: default_privacy label: Default Privacy + positive: 'YES' + negative: 'No' condition: equals: true points: 10