-
Notifications
You must be signed in to change notification settings - Fork 35
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
csdl validator dependency on swordfish schemas? #484
Comments
This is actually a bug in the Swordfish schema; the current publication is incorrectly using a |
And no, the tool's scope is inclusive of references to other schema files. The tool needs to unpack all definitions from externally referenced schemas to ensure any local definitions are consistent with their respective external references. |
Is this essentially recursively following all the Reference tags (like below)? Or is there more to it?
That conceptually makes total sense to me. What I'm struggling to rectify is what the path is from a simple schema to that particular swordfish schema. Take SerialInterface for example, I get the same error against that one too.
Manually looking at the Reference tags, including following the references of other references, I see the following (plus a handful of odata links):
I don't see the path to anything swordfish related, unless it's buried in some odata references. Is there something I'm missing? |
One path I've been following myself is taking the FeaturesRegistry file and including it in my test directory with the fix (or deleting the property completely). That's been the simplest workaround for me. If there is a local copy of the schema, the tool will use that instead of downloading it. Unfortunately with the interconnections at play, there's a bit of a web of references being made. I know ServiceRoot and ComputeSystem will make references to Swordfish. |
I ran into an issue attempting to validate an edit to a single OEM schema file. After some investigation, I find that I cannot get the tool to pass validation for any file, including standard published schemas. Every time I get the same error.
I suppose this wouldn't be too big of an issue if the root cause is simply an error in a Swordfish schema, but the problem is this prevents the tool from actually detecting errors in the schema file I care about validating. I tried manually inserting some errors the tool would normally flag and found the tool bails out before finding any of them.
I don't understand why this dependency exists in the first place. How does a swordfish schema get into the critical path for this tool? I would expect the validation scope to be very narrow when the tool is run against a single schema file -- e.g. follow links to the References and that's it. Chassis is a large schema with a bunch of references, but I've seen the same on other schema files that have very few references (RedfishExtensions_v1.xml, Resource_v1.xml, Org.OData.Capabilities.V1.xml, Org.OData.Core.V1.xml).
The text was updated successfully, but these errors were encountered: