Comments (6)
I took a look at the spec, the schemas and the output of the tool for this assertion (as well as several other similar assertions as mentioned in issue #57).
The applicable section of the spec is 7.5 Schema definition. In 7.5.1. Common annotations it generally states:
All Redfish types and properties shall include description and long description annotations.
And then in subsequent subsections, it makes more specific requirements that these resources and types require Description and LongDescription annotations. Here is a summary:
7.5.3. Resource type definitions (<EntityType>
elements, tested by Assertion_7_5_3())
All resources shall include Description and LongDescription annotations.
7.5.4. Resource properties (<Property>
elements, tested by Assertion_7_5_5())
All properties shall include Description and LongDescription annotations.
7.5.4.1.2. Structured types (<ComplexType>
elements, tested by Assertion_7_5_8())
Structured types shall include Description and LongDescription annotations.
7.5.4.1.3. Enums (<EnumType>
elements, tested by Assertion_7_5_9())
Enumeration Types shall include Description and LongDescription annotations.
7.5.5. Reference properties (<NavigationProperty>
elements, tested by Assertion_7_5_16())
All reference properties shall include Description and LongDescription annotations.
Now, looking at the first couple of errors emitted by the tool for assertion 7_5_3:
~ Resource: ChassisCollection, BaseType: Resource.1.0.0.ResourceCollection and any of its parent BaseType resources (based on inheritance) does not have annotation 'OData.Description' in its OData schema representation document: redfish-1.0.0/metadata/ChassisCollection.xml
~ Resource: ChassisCollection, BaseType: Resource.1.0.0.ResourceCollection and any of its parent BaseType resources (based on inheritance) does not have annotation 'OData.LongDescription' in its OData schema representation document: redfish-1.0.0/metadata/ChassisCollection.xml
Then if we look at ChassisCollection.xml, the <EntityType>
element is:
<EntityType Name="ChassisCollection" BaseType="Resource.1.0.0.ResourceCollection">
<NavigationProperty Name="Members" Type="Collection(Chassis.Chassis)">
<Annotation Term="OData.Permissions" EnumMember="OData.Permissions/Read"/>
<Annotation Term="OData.Description" String="Contains the members of this collection."/>
<Annotation Term="OData.AutoExpandReferences"/>
</NavigationProperty>
</EntityType>
And indeed the ChassisCollection <EntityType>
does not contain an OData.Description or OData.LongDescription annotation. (Note there is an OData.Description annotation in the schema snippet above, but that is of course for the <NavigationProperty>
, not the <EntityType>
.)
So, from my reading of the spec, the tool is correctly flagging these missing OData.Description and OData.LongDescription annotations in the schemas.
Since there were hundreds of such instances flagged, I only spot checked the output of the tool assertions 7_5_3, 7_5_5, 7_5_8, 7_5_9 and 7_5_16. But every one I checked correctly identified a missing but required annotation.
from redfish-service-conformance-check.
So .... does that mean the schemas are incorrect?
Or that our APIs are incorrect?
Or both?
Thanks.
from redfish-service-conformance-check.
It looks like a schema problem to me.
There's no API problem; those annotations are for human consumption.
from redfish-service-conformance-check.
@billdodd will file an issue in the SPMF to discuss further; the spec does state that Descriptions and LongDescriptions are mandatory. We've been making several fixes over the months in this space, but have not completed it.
from redfish-service-conformance-check.
SPMF Issue filed. Think this issue (and #57) can be closed now.
from redfish-service-conformance-check.
Closing; issue has been migrated and schemas will be updated in the future.
from redfish-service-conformance-check.
Related Issues (20)
- Update schema zip file property to point to 2018.3 bundle
- Assertion 6.4.2.3 incorrectly fails HOT 1
- Assertion 6.5.3 incorrectly requires HEAD support HOT 3
- Redfish-Service-Conformance-Check throws an assertion: got an unexpected keyword argument 'row_offset'
- Redfish-Service-Conformance-Check throws an assertion: TypeError: argument of type 'NoneType' is not iterable HOT 7
- Persistent caching of resource URIs causes unexpected behavior
- Request body causes an error in DELETE function
- @odata.context should be optional
- Update schema zip file URL to point to new 2019.1 bundle
- Assertion numbers based on spec location no longer match HOT 3
- Remove duplicative tests HOT 1
- Bug in 6.5.6.5 HOT 1
- HTTPSConnection issue with Python 3.4.3
- Assertion 7.5.16 always fails with reason irrelevant to the SUT HOT 2
- KeyError when returned json_body misses Redfish.Required property
- HTTP "Server" response header not required
- Running assertions fail in 1.2.1
- Assertion 6.4.25 fails for resource with transient data that changes etags HOT 5
- Assertion: COMP139 Traceback HOT 2
- Fails with latest version of openpyxl HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redfish-service-conformance-check.