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

Restore specialist document types in allowed list #2917

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

lauraghiorghisor-tw
Copy link
Contributor

@lauraghiorghisor-tw lauraghiorghisor-tw commented Oct 16, 2024

We've recently removed the specialist document types from the allowed list, in an effort to relax the schema, so that it only checks that the document type is a string.

There are places that use this list, and it should include all the allowed types. We can keep the rest of our changes towards relaxing the schema.

Original PR
Original Trello card

We've recently removed the specialist document types from the allowed list,
in an effort to relax the schema, so that it only checks that the document
type is a string.

There are places that use this list, and it should include
all the allowed types. We can keep the rest of our changes towards
relaxing the schema.
Copy link
Member

@kevindew kevindew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks this will fix our issue on GOV.UK Chat and I understand it'll stop the dev docs from breaking. Though expect you should have a Publishing Platform review too.

Would suggest you don't need the custom overrides like:

if schema_name == "specialist_document"
return { "type" => "string" }
end
anymore as the schema would be auto populated with the full list of document types so can be a bit stricter than fully permissive for less code.

@lauraghiorghisor-tw lauraghiorghisor-tw merged commit bfcd602 into main Oct 16, 2024
41 checks passed
@lauraghiorghisor-tw lauraghiorghisor-tw deleted the restore-allowed-document-types branch October 16, 2024 11:20
@lauraghiorghisor-tw
Copy link
Contributor Author

lauraghiorghisor-tw commented Oct 16, 2024

Original PR

Fair shout 🫡. Changes in #2918.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants