Skip to content

Added metadatablock schema export#2

Merged
JR-1991 merged 4 commits into
mainfrom
1-implement-a-jsonschema-export-per-metadatablock
Mar 22, 2023
Merged

Added metadatablock schema export#2
JR-1991 merged 4 commits into
mainfrom
1-implement-a-jsonschema-export-per-metadatablock

Conversation

@JR-1991
Copy link
Copy Markdown
Member

@JR-1991 JR-1991 commented Mar 14, 2023

Added JSON schema export for metadata blocks which includes the internal Dataverse schema (multiple, typeClass etc.) as issued in #1 . The method can be used on any generated metadata block code by

# Returns schema as a string
dataset.citation.json_schema()

# Writes schema to a 'path/[BLOCKNAME].schema.json' file
dataset.citation.json_schema(path="path/")

Closes #1

@JR-1991 JR-1991 added the enhancement New feature or request label Mar 14, 2023
@JR-1991 JR-1991 self-assigned this Mar 14, 2023
@JR-1991 JR-1991 linked an issue Mar 14, 2023 that may be closed by this pull request
@JR-1991 JR-1991 merged commit 81d8d45 into main Mar 22, 2023
@JR-1991 JR-1991 deleted the 1-implement-a-jsonschema-export-per-metadatablock branch March 22, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement a JSONSchema export per metadatablock

1 participant