You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The policy hub is planning to introduce a new feature called "automatic odrl policy template validation". This feature will allow users or systems to submit ODRL Policy Templates to the policy hub via the REST API. The policy hub will then validate the correctness of the template and provide a response to the user or system.
The possible responses from the policy hub include:
All Correct: Indicates that the template is correct and no issues were found.
Format correct but not supported values are used: Indicates that the template has the correct format, but some values used are not supported. Examples of unsupported values include "String", "String", and "String".
Format correct but not supported policyRules are used: Indicates that the template has the correct format, but some policyRules used are not supported. Examples of supported string values include
"Business Partner Number rightOperand incorrect"
"Inactive Frameagreement Version used"
etc.
Please note that the policy hub can provide additional responses beyond the ones mentioned above.
Note - a similar implementation exists inside the authority & schema registry - please check the implementation details and likely use similar logic for the policy hub scenario. More information can be found at [this link](https://github.com/eclipse-tractusx/ssi-authority-schema-registry/issues/11).
To support all scenarios the response should never be a html error response. Instead we need an actual Payload information response to the user.
{
"Status": "string - either "OK", "OK under conditions", "NOK"""Details": [
{
"line": "rowxx",
"message": "string"
}
]
}
actions must be set; either "use" or "access", flag any others as unsupported
Validate that "use" actions are paired with "and" logical constraints.
"access" actions can be paired with "and" or "or" logical constraints
Mark "xone" or "andSequence" logical constraints as "OK under conditions", noting that while semantically correct, they are not supported by CX.
Ensure validation is case-insensitive.
Restrict operators to "eq", "in", and "or", providing guidance on unsupported operators.
Operators such as "gt", "gteq", "lt", "lteq", "neq", "isA", "hasPart", "isPartOf", "isAllOf", "isAnyOf", "isNoneOf" are used; response needed that those are "OK under conditions"; but not suggested to be used in CX context.
Permit only specific leftOperands, and flag any others as unsupported. Supported are:
cx-policy:Membership
cx-policy:BusinessPartnerNumber
cx-policy:ContractReference
cx-policy:FrameworkAgreement
cx-policy:UsagePurpose
Check the validity and activity status of rightOperands. The used rightOperand must be allowed and in "active" statue
if a none active rightOperand is used provide specific response of the incorrect use of an inactive rightOperand
If a not supported rightOperand is used - provide the specific response as well
The text was updated successfully, but these errors were encountered:
Summary
The policy hub is planning to introduce a new feature called "automatic odrl policy template validation". This feature will allow users or systems to submit ODRL Policy Templates to the policy hub via the REST API. The policy hub will then validate the correctness of the template and provide a response to the user or system.
The possible responses from the policy hub include:
Please note that the policy hub can provide additional responses beyond the ones mentioned above.
Note - a similar implementation exists inside the authority & schema registry - please check the implementation details and likely use similar logic for the policy hub scenario. More information can be found at [this link](https://github.com/eclipse-tractusx/ssi-authority-schema-registry/issues/11).
To support all scenarios the response should never be a html error response. Instead we need an actual Payload information response to the user.
Acceptance Criteria
Standard ODRL Structure expected
Validation Rules
The text was updated successfully, but these errors were encountered: