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 tests for invalid JSON for definition in request #119

Closed
wants to merge 3 commits into from

Conversation

cfisher-scottlogic
Copy link

#81 refactored the type of LayoutRequestDTO.definition to ObjectNode to enforce a valid JSON constraint. A couple of new tests to ensure this enforcement is successful are missing. This PR adds those tests, and possibly highlights the need for better exception handling of this issue to provide a cleaner error message.

cfisher-scottlogic

This comment was marked as resolved.

@cfisher-scottlogic cfisher-scottlogic marked this pull request as ready for review November 22, 2023 09:48
@pling-scottlogic
Copy link

If we're going to add these tests for the Layouts resource, it's probably worth doing the same for Application Layouts.

@cfisher-scottlogic cfisher-scottlogic force-pushed the SLVUU-tests-for-definition-json branch from ec590a2 to c96bcb3 Compare November 23, 2023 13:17
@cfisher-scottlogic cfisher-scottlogic changed the base branch from VUU333-layout-server to main November 23, 2023 13:18
@cfisher-scottlogic cfisher-scottlogic force-pushed the SLVUU-tests-for-definition-json branch from c96bcb3 to af3e6ae Compare November 23, 2023 14:00
@cfisher-scottlogic
Copy link
Author

If we're going to add these tests for the Layouts resource, it's probably worth doing the same for Application Layouts.

Done! af3e6ae

@cfisher-scottlogic
Copy link
Author

Upstream PR

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