Comments (8)
Added them manually. This eliminated the message regarding the Release annotation. Still not happy with the OwningEntity.
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="RedfishYangExtensions.v1_0_0">
<Annotation Term="Redfish.OwningEntity" String="DMTF"/>
<Annotation Term="Redfish.Release" String="1.0"/>
from yang-to-redfish-converter.
The OeningEntity annotation in RedfishExtensions_v1.xml has a different form.
<Annotation Term="RedfishExtensions.v1_0_0.OwningEntity" String="DMTF"/>
from yang-to-redfish-converter.
Looks like the issue are in csdl-syntax-test.js
const NamespacesWithoutReleaseTerm = ['RedfishExtensions.v1_0_0', 'Validation.v1_0_0', 'RedfishError.v1_0_0', 'Schedule.v1_0_0', 'Schedule.v1_1_0' ];
function schemaOwningEntityCheck(csdl) {
let schemas = CSDL.search(csdl, 'Schema');
for(let i = 0; i < schemas.length; i++) {
let owningEntity = CSDL.search(schemas[i], 'Annotation', 'Redfish.OwningEntity');
if(owningEntity.length === 0) {
let owningEntity = CSDL.search(schemas[i], 'Annotation', 'RedfishExtensions.v1_0_0.OwningEntity');
if(owningEntity.length === 0) {
throw new Error('Namespace '+schemas[i]._Name+' lacks OwningEntity!');
}
}
}
}
from yang-to-redfish-converter.
It's different in RedfishExtensions_v1.xml because of the lack of aliasing in that file. All other files pull in "RedfishExtensions.v1_0_0" and alias it as "Redfish", but local aliasing does not seem possible.
from yang-to-redfish-converter.
Thanks for the guidance. I just have one error regarding OwningEntity.
1) CSDL Tests
metadata/RedfishYangExtensions_v1.xml
All Annotation Terms are valid:
Error: Unable to locate annotation term "Redfish.OwningEntity"
at checkAnnotationTerms (node_modules/redfishrepotest/csdl-syntax-test.js:651:13)
at Context.<anonymous> (node_modules/redfishrepotest/csdl-syntax-test.js:152:51)
at processImmediate (internal/timers.js:461:21)
But, the annotation is there
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="RedfishYangExtensions.v1_0_0">
<Annotation Term="Redfish.OwningEntity" String="DMTF"/>
<Annotation Term="Redfish.Release" String="1.0"/>
from yang-to-redfish-converter.
It might be because it's lacking the inclusion of the RedfishExtensions file; try adding:
<edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml">
<edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/>
</edmx:Reference>
from yang-to-redfish-converter.
Bingo!
Thanks. Your guidance is better than my flailing.
from yang-to-redfish-converter.
Resolved
from yang-to-redfish-converter.
Related Issues (20)
- Unresolved reference error while converting OpenConfig Yang file CSDL to JSON HOT 4
- Would like to get the plugin branch to master HOT 1
- One CSDL file per module HOT 2
- The conversion from OpenConfig YANG generates more CSDL files HOT 1
- Travis - Unknown element name Collection HOT 4
- Unclear how to reference generated CSDL file HOT 3
- Collection element not recognized by Travis HOT 15
- Travis complains for <Annotation> elements HOT 8
- Broken type references HOT 1
- Unrecognized keyword - openconfig-extensions HOT 3
- Travis error - unexpected close tag HOT 5
- CSDLs are missing an Action HOT 4
- Travis errors in openconfig_acl_v1.xml HOT 2
- Travis errors on openconfig_if_aggregate_v1.xml HOT 3
- Travis error - Unknown attribute name Alias (3 times) HOT 3
- Travis warning - Complex Types Should Not have Permissions (5 times) HOT 1
- Travis error - Unable to locate type (6 times) HOT 1
- Travis error - Unable to locate annotation (5 times) HOT 1
- Travis error - RedfishYangExtensions.v1_0_0 needs OwningEntity and Release terms HOT 2
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 yang-to-redfish-converter.