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

Add Presentation Definition Object #249

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Add Presentation Definition Object #249

merged 1 commit into from
Jun 25, 2024

Conversation

nitro-neal
Copy link
Contributor

Add Presentation Definition Object

To create one it will look like this:

val inputDescriptor = InputDescriptor(
      id = "test_input",
      name = "Test Input",
      purpose = "For testing",
      constraints = ConstraintsData(
        fields = listOf(
          FieldData(
            id = "field1",
            name = "Field 1",
            path = listOf("$.field1"),
            purpose = "Test field",
            filter = FilterData(
              type = "string",
              pattern = "^[a-zA-Z]+$",
              constValue = null
            ),
            optional = false,
            predicate = Optionality.REQUIRED
          )
        )
      )
    )

    val presentationDefinition = PresentationDefinition(
      id = "test_presentation",
      name = "Test Presentation",
      purpose = "For testing purposes",
      inputDescriptors = listOf(inputDescriptor)
    )

val purpose: String?
val inputDescriptors: List<InputDescriptor>

internal val rustCorePresentationDefinition: RustCorePresentationDefinition
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! internal

Copy link
Contributor

@KendallWeihe KendallWeihe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@nitro-neal nitro-neal merged commit 7e196fe into main Jun 25, 2024
6 checks passed
@nitro-neal nitro-neal deleted the pd-impl branch June 25, 2024 16:31
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.

2 participants