-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove Attribute's IncludeInResult from Result and PolicyIssuer #18
Comments
Yes, Another option is to define a base |
I prefer the second option, but in that case, we'd need a new element like So as I understand it, the changes to the XML schema if we go down that road:
<xs:element name="Attribute" type="xacml:AttributeType"/>
<xs:complexType name="AttributeType">
<xs:sequence>
<xs:element ref="xacml:AttributeValue" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="AttributeId" type="xs:anyURI" use="required"/>
<xs:attribute name="Issuer" type="xs:string" use="optional"/>
<!-- IncludeInResult REMOVED -->
<!--<xs:attribute name="IncludeInResult" type="xs:boolean" use="required"/>-->
</xs:complexType>
<!-- Other name suggestions besides RequestAttribute? -->
<xs:element name="RequestAttribute" type="xacml:RequestAttributeType"/>
<xs:complexType name="RequestAttributeType">
<xs:complexContent>
<xs:extension base="xacml:AttributeType">
<!-- IncludeInResult use changed from required to optional with default false -->
<xs:attribute name="IncludeInResult" type="xs:boolean" use="optional" default="false"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
- <xs:element name="AttributeCategory" type="xacml:AttributeCategoryType"/>
+ <xs:element name="Category" type="xacml:AttributeCategoryType"/>
<xs:complexType name="AttributeCategoryType">
<xs:sequence>
<xs:element ref="xacml:Content" minOccurs="0"/>
<xs:element ref="xacml:RequestAttribute" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
- <xs:attribute name="Category" type="xs:anyURI" use="required"/>
+ <xs:attribute name="CategoryId" type="xs:anyURI" use="required"/>
<xs:attribute ref="xml:id" use="optional"/>
</xs:complexType>
<xs:complexType name="RequestType">
<xs:sequence>
<xs:element ref="xacml:RequestDefaults" minOccurs="0"/>
- <xs:element ref="xacml:AttributeCategory" maxOccurs="unbounded"/>
+ <xs:element ref="xacml:Category" maxOccurs="unbounded"/>
<xs:element ref="xacml:MultiRequests" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="ReturnPolicyIdList" type="xs:boolean" use="required"/>
<xs:attribute name="CombinedDecision" type="xs:boolean" use="required" />
</xs:complexType> |
Yeah, it's a bit odd. How about |
OK I changed the schema in my previous comment accordingly. The So for the other changes to the schema, here it goes (unchanged content has been omitted): <xs:complexType name="AttributeDesignatorType">
...
- <xs:attribute name="Category" type="xs:anyURI" use="required"/>
+ <xs:attribute name="CategoryId" type="xs:anyURI" use="required"/>
...
</xs:complexType>
...
<xs:complexType name="AttributeSelectorType">
...
- <xs:attribute name="Category" type="xs:anyURI" use="required"/>
+ <xs:attribute name="CategoryId" type="xs:anyURI" use="required"/>
...
</xs:complexType>
...
<xs:complexType name="AttributeAssignmentType" mixed="true">
...
- <xs:attribute name="Category" type="xs:anyURI" use="optional"/>
+ <xs:attribute name="CategoryId" type="xs:anyURI" use="optional"/>
...
</xs:complexType>
...
<xs:complexType name="AttributeAssignmentExpressionType">
...
- <xs:attribute name="Category" type="xs:anyURI" use="optional"/>
+ <xs:attribute name="CategoryId" type="xs:anyURI" use="optional"/>
...
</xs:complexType>
...
<xs:complexType name="MissingAttributeDetailType">
...
- <xs:attribute name="Category" type="xs:anyURI" use="required"/>
+ <xs:attribute name="CategoryId" type="xs:anyURI" use="required"/>
...
</xs:complexType> |
|
The attribute
IncludeInResult
is always required on theAttribute
element, even when returned in aResult
or used inPolicyIssuer
although it does not make sense there.Is there a way to remove it in these cases? (But keep it in the Request.)
What are the options?
The text was updated successfully, but these errors were encountered: