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 missing schemas #31

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Installation/Schema/Anonymization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Anonymization",
"$id": "https://openwoo.app/schemas/anonymization.schema.json",
"$schema": "https://docs.commongateway.nl/schemas/Entity.schema.json",
"version": "0.0.1",
"type": "object",
"description": "Whether the attachment is properly annonymized and the results there of",
"tags": ["Open Index"],
"properties": {
"anonymized": {
"type": "boolean",
"description": "If there was a succesfull anonymization"
},
"results": {
"type": "string",
"description": "Any results of the anonymization procces",
"maxLength": 2500
}
}
}
37 changes: 7 additions & 30 deletions Installation/Schema/Attachment.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,38 +73,15 @@
},
"anonymization": {
"type": "object",
"format": "json",
"description": "Whether the attachment is properly annonymized and the results there of",
"properties": {
"anonymized": {
"type": "boolean",
"description": "If there was a succesfull anonymization"
},
"results": {
"type": "string",
"description": "Any results of the anonymization procces",
"maxLength": 2500
}

}
},
"language": {
"$ref": "https://openwoo.app/schemas/anonymization.schema.json"
},
"languageObject": {
"type": "object",
"description": "The language and language level of the object",
"properties": {
"code": {
"type": "string",
"description": "ISO 639-1 standard language code",
"example": "en-us",
"maxLength": 7
},
"level": {
"type": "string",
"description": "Common European Framework of Reference (CEFR) for language level, see https://en.wikipedia.org/wiki/Common_European_Framework_of_Reference_for_Languages for a explanation and translation to ACTFL",
"example": "A1",
"enum": ["0","A1","A2","B1","B2","C1","C2"],
"maxLength": 2
}
}
"format": "json",
"description":"The language and language level of the object",
"$ref": "https://openwoo.app/schemas/language.schema.json"
},
"version_of": {
"type": "string",
Expand Down
37 changes: 7 additions & 30 deletions Installation/Schema/Publication.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,38 +119,15 @@
},
"anonymization": {
"type": "object",
"format": "json",
"description": "Whether the attachment is properly annonymized and the results there of",
"properties": {
"anonymized": {
"type": "boolean",
"description": "If there was a succesfull anonymization"
},
"results": {
"type": "string",
"description": "Any results of the anonymization procces",
"maxLength": 2500
}

}
},
"language": {
"$ref": "https://openwoo.app/schemas/anonymization.schema.json"
},
"languageObject": {
"type": "object",
"description": "The language and language level of the object",
"properties": {
"code": {
"type": "string",
"description": "ISO 639-1 standard language code",
"example": "en-us",
"maxLength": 7
},
"level": {
"type": "string",
"description": "Common European Framework of Reference (CEFR) for language level, see https://en.wikipedia.org/wiki/Common_European_Framework_of_Reference_for_Languages for a explanation and translation to ACTFL",
"example": "A1",
"enum": ["0","A1","A2","B1","B2","C1","C2"],
"maxLength": 2
}
}
"format": "json",
"description":"The language and language level of the object",
"$ref": "https://openwoo.app/schemas/language.schema.json"
},
"published": {
"type": "string"
Expand Down
Loading