-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement flexible identifier schemes
Signed-off-by: Nam Hoang <[email protected]>
- Loading branch information
1 parent
35f5400
commit c2d9322
Showing
36 changed files
with
9,091 additions
and
287 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
sidebar_position: 57 | ||
title: Construct Application Identifier Data | ||
--- | ||
|
||
import Disclaimer from '../.././\_disclaimer.mdx'; | ||
|
||
<Disclaimer /> | ||
|
||
## Description | ||
|
||
The `constructAiData` object defines the schema for constructing event data for getting Application Identifier (AI) data. It will be used to fetch the AI data from the JSON form or the credential object which are not explicitly defined the data model. | ||
|
||
### Example | ||
|
||
```json | ||
{ | ||
"primary": { | ||
"ai": "01", | ||
"path": "/registeredId" | ||
}, | ||
"qualifiers": [ | ||
{ | ||
"ai": "21", | ||
"path": "/serialNumber" | ||
}, | ||
{ | ||
"ai": "10", | ||
"path": "/batchNumber" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Definitions | ||
|
||
| Property | Required | Description | Type | | ||
| ---------- | :------: | ---------------------------------------------------------------------------------- | ----------------------------------------------------------------- | | ||
| primary | Yes | The primary AI that defines the AI code and the path for primary AI value | [AI config](/docs/mock-apps/common/construct-ai-data#ai-config) | | ||
| qualifiers | No | The list of qualifiers that define the AI code and the path for qualifier AI value | [AI config](/docs/mock-apps/common/construct-ai-data#ai-config)[] | | ||
|
||
#### AI config | ||
|
||
| Property | Required | Description | Type | | ||
| -------- | :------: | ----------------------------------------------------------------------- | ------ | | ||
| ai | Yes | The AI code that defines the AI data | String | | ||
| path | Yes | The JSON pointer path to extract the AI data from the credential object | String | |
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
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
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
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
Oops, something went wrong.