Skip to content

Commit

Permalink
made fields except uid optional
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm committed Nov 14, 2024
1 parent 2b7a419 commit f2b0c59
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/schema/schemasPublic/Collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
"description": "Total number of items in the collection."
}
},
"required": ["uid", "title", "description", "accessLevel", "createdAt", "updatedAt", "totalItems"]
"required": ["uid"]
}
14 changes: 1 addition & 13 deletions src/schema/schemasPublic/ContentItem.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,5 @@
"enum": ["newspaper"]
}
},
"required": [
"uid",
"type",
"title",
"transcript",
"locations",
"persons",
"topics",
"transcriptLength",
"totalPages",
"isOnFrontPage",
"publicationDate"
]
"required": ["uid"]
}
3 changes: 2 additions & 1 deletion src/schema/schemasPublic/EntityDetails.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"type": "integer",
"description": "Total number of content items the entity is mentioned in."
}
}
},
"required": ["uid"]
}
6 changes: 2 additions & 4 deletions src/schema/schemasPublic/EntityMention.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
},
"relevance": {
"type": "number",
"description": "Relevance of the entity in the document",
"minimum": 0,
"maximum": 1
"description": "Relevance of the entity in the document"
}
},
"required": ["uid", "relevance"]
"required": ["uid"]
}
2 changes: 1 addition & 1 deletion src/schema/schemasPublic/Newspaper.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"minimum": 0
}
},
"required": ["uid", "title", "languageCodes", "totalArticles", "totalIssues", "totalPages"]
"required": ["uid"]
}
2 changes: 1 addition & 1 deletion src/schema/schemasPublic/TextReuseCluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@
"required": ["startDate", "endDate"]
}
},
"required": ["uid", "lexicalOverlap", "clusterSize", "textSample", "timeCoverage"]
"required": ["uid"]
}
2 changes: 1 addition & 1 deletion src/schema/schemasPublic/TextReusePassage.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"required": ["start", "end"]
}
},
"required": ["uid", "content", "contentItemId", "offset"]
"required": ["uid"]
}
2 changes: 1 addition & 1 deletion src/schema/schemasPublic/TopicMention.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"maximum": 1
}
},
"required": ["uid", "relevance"]
"required": ["uid"]
}
3 changes: 2 additions & 1 deletion src/schema/schemasPublic/VersionDetails.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"type": "string",
"description": "Version of the API."
}
}
},
"required": ["version"]
}

0 comments on commit f2b0c59

Please sign in to comment.