Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • text api text api
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • subugoesubugoe
  • emoemo
  • text apitext api
  • Merge requests
  • !54

Fix title validation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged mrodzis requested to merge fix-title-validation into release-july-2022 Jul 15, 2022
  • Overview 0
  • Commits 2
  • Pipelines 3
  • Changes 5

This MR fixes the validation of the Title Object which has formerly not been working very well.

The schema adjustments ensure that:

  • if several Title Objects are available in an array, there is one and only one main title
  • if no subtitle is given, there is only one Title Object present (which represents a main title)

It does so by leveraging the prefixItems property which as a consequence requires implementers to put the main title on array position 0.

Furthermore, this MR adds a missing requires @context to title-main.json.

Edited Jul 15, 2022 by mrodzis
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-title-validation