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

CAY-2846 Modeler: Allow to disable some validation rules in the project #617

Merged

Conversation

m-dzianishchyts
Copy link
Contributor

@m-dzianishchyts m-dzianishchyts commented May 28, 2024

What does this PR do?

  • Refactors current validators.
  • Provides modeler module with ValidationExtension to load and save validation config.
  • Allows to edit validation config in the modeler.

Here is an example of cayenne-project.xml with customized validation config:

<?xml version="1.0" encoding="utf-8"?>
<domain xmlns="http://cayenne.apache.org/schema/11/domain"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	 xsi:schemaLocation="http://cayenne.apache.org/schema/11/domain https://cayenne.apache.org/schema/11/domain.xsd"
	 project-version="11">
	<!-- Some other configs... -->
	
	<validation xmlns="http://cayenne.apache.org/schema/11/validation">
		<exclude>OBJ_ATTRIBUTE_INVALID_MAPPING</exclude>
	</validation>
</domain>

Images of changes

Windows 11:

image

Testing

Tested validation config loading (b7f4cc9)

@m-dzianishchyts m-dzianishchyts marked this pull request as ready for review June 23, 2024 13:35
@m-dzianishchyts m-dzianishchyts force-pushed the modeler-configurable-validation branch from 67dc477 to 52543d1 Compare June 25, 2024 09:58
@stariy95 stariy95 merged commit 24ffdfd into apache:master Jul 2, 2024
12 checks passed
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