Skip to content

Commit

Permalink
Upd: Policy and revision object
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 12, 2023
1 parent 2dd8640 commit ef45368
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
23 changes: 12 additions & 11 deletions openapi/v2023.8.2/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ components:
description: A policy governs data and Agreement in the realm of an organisation that is refered to as "data controller" (GDPR) and owner of referencing Agreements.
x-not-in-database: false
required:
- id
- name
- version
- url
Expand All @@ -414,7 +413,7 @@ components:
type: string
format: ''
example: ''
description: Version of the policy
description: Version of the policy. It can follow semver format.
url:
type: string
format: ''
Expand Down Expand Up @@ -471,6 +470,10 @@ components:
format: ''
example: ''
description: This was previously called "schema" but for technical reasons should be called "schemaName"
enum:
- dataAgreement
- policy
- dataAgreementRecord
objectId:
type: string
format: ''
Expand All @@ -485,7 +488,7 @@ components:
type: string
format: ''
example: ''
description: 'Revisioned data (serialized as JSON) as a dict {objectData: {...}, schemaName: ..., objectId: ..., signedWithoutObjectId: ..., timestamp: ..., authorizedByIndividual: ..., authorizedByOther: ...}. It contains all the fields of the schema except id, successor, predecessorHash and predecessorSignature.'
description: 'Revisioned data (serialized as JSON) as a dict.Apply JSON Canonicalization Scheme as per IETF RFC 8785. It contains all the fields of the schema except id, successor, predecessorHash and predecessorSignature.'
serializedHash:
type: string
format: ''
Expand All @@ -495,20 +498,18 @@ components:
type: string
format: ''
example: ''
description: Timestamp of when revisioning happened
authorizedByIndividual:
$ref: '#/components/schemas/Individual'
x-fk-model: Individual
description: ''
description: Timestamp of when revisioning happened. It should be ISO 8601 UTC date time
authorizedByIndividualId:
description: Individual Id
authorizedByOther:
type: string
format: ''
example: ''
description: Reference to an admin user that has created this revision
successor:
$ref: '#/components/schemas/Revision'
successorId:
x-fk-model: Revision
description: 'This revision is no longer the latest revision, refer to its successor.'
type: string
description: 'If this revision is no longer the latest revision, refer to its successor.'
predecessorHash:
type: string
format: ''
Expand Down
3 changes: 1 addition & 2 deletions openapi/v2023.8.2/definitions/Policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: 'A policy governs data and Agreement in the realm of an organisatio
x-not-in-database: false

required:
- id
- name
- version
- url
Expand All @@ -25,7 +24,7 @@ properties:
type: string
format: ""
example: ""
description: "Version of the policy"
description: "Version of the policy. It can follow semver format."

url:
type: string
Expand Down
20 changes: 11 additions & 9 deletions openapi/v2023.8.2/definitions/Revision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ properties:
format: ""
example: ""
description: 'This was previously called "schema" but for technical reasons should be called "schemaName"'
enum:
- dataAgreement
- policy
- dataAgreementRecord

objectId:
type: string
Expand All @@ -39,7 +43,7 @@ properties:
type: string
format: ""
example: ""
description: "Revisioned data (serialized as JSON) as a dict {objectData: {...}, schemaName: ..., objectId: ..., signedWithoutObjectId: ..., timestamp: ..., authorizedByIndividual: ..., authorizedByOther: ...}. It contains all the fields of the schema except id, successor, predecessorHash and predecessorSignature."
description: "Revisioned data (serialized as JSON) as a dict.Apply JSON Canonicalization Scheme as per IETF RFC 8785. It contains all the fields of the schema except id, successor, predecessorHash and predecessorSignature."

serializedHash:
type: string
Expand All @@ -51,23 +55,21 @@ properties:
type: string
format: ""
example: ""
description: "Timestamp of when revisioning happened"
description: "Timestamp of when revisioning happened. It should be ISO 8601 UTC date time"

authorizedByIndividual:
$ref: "./Individual.yaml"
x-fk-model: "Individual"
description: ""
authorizedByIndividualId:
description: "Individual Id"

authorizedByOther:
type: string
format: ""
example: ""
description: "Reference to an admin user that has created this revision"

successor:
$ref: "./Revision.yaml"
successorId:
x-fk-model: "Revision"
description: "This revision is no longer the latest revision, refer to its successor."
type: string
description: "If this revision is no longer the latest revision, refer to its successor."

predecessorHash:
type: string
Expand Down

0 comments on commit ef45368

Please sign in to comment.