Skip to content

Commit

Permalink
Merge pull request #37 from discoverygarden/fix/add-schema
Browse files Browse the repository at this point in the history
Fix/add schema
  • Loading branch information
nchiasson-dgi authored Nov 15, 2023
2 parents 7644674 + c61c4cd commit 7281e71
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
23 changes: 23 additions & 0 deletions config/schema/dgi_actions.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,26 @@ dgi_actions.service_data.*:
dgi_actions.service_data_type.*:
type: mapping
label: 'Service Data Type'

condition.plugin.dgi_actions_entity_persistent_identifier_populated:
type: condition.plugin
mapping:
identifier:
type: machine_name
nullable: true


dgi_actions_action_identifier_base:
type: mapping
mapping:
identifier_entity:
type: machine_name

dgi_actions_action_mint_base:
type: dgi_actions_action_identifier_base
mapping:
save_entity:
type: boolean

dgi_actions_action_delete_base:
type: dgi_actions_action_identifier_base
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
action.configuration.dgi_actions_delete_ark_identifier:
type: dgi_actions_action_delete_base
dgi_actions_ark_identifier_mint_base:
type: dgi_actions_action_mint_base
mapping:
status:
type: dgi_actions_ark_identifier_status.[%parent.status]
dgi_actions_ark_identifier_status.public:
type: machine_name
dgi_actions_ark_identifier_status.reserved:
type: machine_name
dgi_actions_ark_identifier_status.unavailable:
type: machine_name
dgi_actions_ark_identifier_status.*:
type: undefined
action.configuration.dgi_actions_mint_ark_identifier:
type: dgi_actions_ark_identifier_mint_base
action.configuration.dgi_actions_mint_ark_identifier_node:
type: dgi_actions_ark_identifier_mint_base
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
dgi_actions.service_data_type.handle:
type: mapping
label: 'Handle.net Service Data'
Expand All @@ -18,3 +19,8 @@ dgi_actions.service_data_type.handle:
label: 'Prefix'
type: string
description: 'Handle prefix as specified from Handle.net.'

action.configuration.dgi_actions_delete_handle:
type: dgi_actions_action_delete_base
action.configuration.dgi_actions_mint_handle:
type: dgi_actions_action_mint_base

0 comments on commit 7281e71

Please sign in to comment.