-
Notifications
You must be signed in to change notification settings - Fork 107
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
rajaneeshk90
wants to merge
15
commits into
beckn:Verifiable-Credentials
Choose a base branch
from
rajaneeshk90:beckn-json-new
base: Verifiable-Credentials
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Define a schema for the beckn.json document #470
rajaneeshk90
wants to merge
15
commits into
beckn:Verifiable-Credentials
from
rajaneeshk90:beckn-json-new
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…s components - Updating the existing Credential Objects in the schema/ folder, adding more details in it - Adding the Credntial schema in Agent, Customer, Organisation, Payment, Provider, Subscriber, Fulfillment, Item, Order objects - Added 2 more endpoints, cred/ and on_cred/
…ot standarised by VC specification
…o credentialSchema
… it backword compatible.
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
api/about-endpoint
is created.api/about-endpoint/about.json
is created which defines the template for the beckn.json content.api/about-endpoint/becknVerifiableCredential.json
was generated programatically usingjson-dereference
cli command. This process uses the existing schema/Credential.yaml file to generate theapi/about-endpoint/becknVerifiableCredential.json
file.api/about-endpoint/beckn.json
was generated programmatically usingjson-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.