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

json schema #8

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

json schema #8

wants to merge 9 commits into from

Conversation

biscoe916
Copy link
Member

Proposed Changes

Checklist

  • A clear description of the change has been included in this PR.
  • A clear description of whether this change is a Major, Minor, Patch or cosmetic change as per the Versioning Guidelines has been included in this PR.
  • All schema validation tests have been updated appropriately and are passing.
  • MAJOR/MINOR VERSION CHANGES ONLY: This PR should be made in branches prefixed with draft-<change>
  • MAJOR/MINOR VERSION CHANGES ONLY: A link to a reference implementation (PR or set of PRs) of the change has been included in this PR.
  • MAJOR/MINOR VERSION CHANGES ONLY: A writeup has been included discussing the motivation and impact of this change.
  • MAJOR/MINOR VERSION CHANGES ONLY: The minimum wait time has elapsed.
  • DRAFT MERGE ONLY: Draft Semver has been updated in the VERSION file (optional)
  • DRAFT MERGE ONLY: Tagged this branch with new semver version and an annotation describing the change (ex: git tag -s 4.1.0 -m "Spec version 4.1.0 - did a thing")
  • DRAFT MERGE ONLY: Version numbers have been updated as per the Versioning Guidelines.
  • This change otherwise adheres to the project Contribution Guidelines.

Copy link

@stephaniegraham stephaniegraham left a comment

Choose a reason for hiding this comment

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

Hey Tyler -

Based on our conversation today at noon - are we talking about adding something to the json schema that supports assertions? Something like the below???

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/manifest.schema.json",
  "title": "manifest",
  "description": "TDF manifest in JSON",
  "type": "object",
  "properties": {
    "payload": {}
    "encryptionInformation": {}
    "assertions:[
      {
      "type": "object",
      "description": "An object which contains information describing an assertion.",
      "properties": {
        "type": {
          "description": "Describes the type of assertion (handling or not).",
          "type": "string"
        },
        "Scope": {
          "description": "Describes the scope of assertion.",
          "type": "string"
        },
        "id": {
          "description": "A unique local identifier used for binding and signing purposes. Not guaranteed to be unique across multiple TDOs but must be unique within a single instance.",
          "type": "string"
        },
        "assertionValue": {
          "description": "The assertion."
        }
      }
      }
    ],
  }
}

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