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

feat: add option to skipValidation when using /digital-planning-application admin endpoint #3021

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Apr 16, 2024

Relies on theopensystemslab/planx-core#353

Testing:

Copy link

github-actions bot commented Apr 16, 2024

Removed vultr server and associated DNS entries

Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

Perfect!

Now using https://json-schema.app/view/%23?url=https%3A%2F%2Ftheopensystemslab.github.io%2Fdigital-planning-data-schemas%2Fv0.5.0%2Fschema.json we can copy/paste the payload and get a readable and super clear list of validation errors right away 🥇

image

let skipValidation = false;
if (req.query?.skipValidation) {
skipValidation =
(req.query.skipValidation as string).toLowerCase() === "true";
Copy link
Contributor

Choose a reason for hiding this comment

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

Easy to forget this query param step when dealing with bools! 👌

jessicamcinchak added a commit to theopensystemslab/planx-core that referenced this pull request Apr 16, 2024
@jessicamcinchak jessicamcinchak merged commit 8ce4397 into main Apr 16, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/digital-planning-admin-skip-validation branch April 16, 2024 18:35
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.

2 participants