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

[RRT] Add mandatory custom properties support feature #12072

Merged
merged 5 commits into from
Jun 30, 2023

Conversation

dulithsenanayake
Copy link
Contributor

@dulithsenanayake dulithsenanayake commented Jun 29, 2023

Purpose

This PR adds the implementation of mandatory custom properties support feature to the publisher portal. This feature can be enabled by defining server config or tenant config as below.

Server Config

[[apim.publisher.custom_properties]]
required=true
name="PropertyName"
description="Property Description"

Tenant Config
Add the configuration as shown below by navigating to the Settings -> Advanced page of the admin portal

"PropertyConfigurations": {
	"Properties": [
		{
			"Name": "PropertyName",
			"Required": true,
			"Description": "Property Description"
		}
        ]
}

This PR includes a rest API validation to the mandatory custom properties when updating the additionalPropertiesMap.

Related PRs

@dulithsenanayake dulithsenanayake merged commit f0181ba into wso2:master Jun 30, 2023
2 of 6 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