Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a schema for the beckn.json document #470

Open
wants to merge 15 commits into
base: Verifiable-Credentials
Choose a base branch
from

Conversation

rajaneeshk90
Copy link
Collaborator

@rajaneeshk90 rajaneeshk90 commented Oct 23, 2024

Description

As per the discussions, it was decided that to represent platform level credentials, we will use a beckn.json file, which will be accessed at <bpp_uri/bap_uri>/beckn.json.

Other platforms should be able to fetch this using a <bpp_uri/bap_uri>/beckn.json url.

This PR defines the schema for the beckn.json using jsonSchema.

Summary

The current proposed schema for beckn.json has 2 fields.

credentials: This is an array of credentials object. The schema of each credential object in the array is same as the Credential object defined in the Beckn Core protocol specification. This array would have a list of credentials that a platform has. For example, there could be a credential to represent if a platform is UEI verified.

layer2config: This filed would have the link to a layer 2 config file. A Layer2 configuration file contains the network specific business rules corresponding to a network.

Changes

  1. A new folder api/about-endpoint is created.
  2. A new file api/about-endpoint/about.json is created which defines the template for the beckn.json content.
  3. A new file api/about-endpoint/becknVerifiableCredential.json was generated programatically using json-dereference cli command. This process uses the existing schema/Credential.yaml file to generate the api/about-endpoint/becknVerifiableCredential.json file.
  4. A new file api/about-endpoint/beckn.json was generated programmatically using json-dereference cli command.

Migration Impact

The changes are fully backward compatible. All modifications involved either the creation of new schemas or the addition of new fields to existing schemas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant