|
Post by iamsarki on Jan 19, 2024 8:57:12 GMT
hi, is there a minified version of the xml schemas?
|
|
|
Post by mraineri on Jan 19, 2024 13:17:40 GMT
What exactly would a "minified" schema be? I'm not familiar with this.
However, I expect the answer will be no. The XML schemas we publish strictly follow OData's CSDL definitions, and altering the format/syntax would break conformance with that language.
|
|
|
Post by iamsarki on Jan 19, 2024 15:10:17 GMT
My bad, I was not clear. I mean without comments, line breaks, spaces.. The service I am creating uses the schemas internally to load all information on startup and I wanted to reduce the size of them to slightly improve the loading time
|
|
|
Post by mraineri on Jan 19, 2024 15:35:35 GMT
Got it; that makes sense. Unfortunately we do not publish them like that, but you should be able to remove that for your own purposes if you need to reduce space in your service.
We do allow for schemas to be modified when carried on-chip per certain rules outlined in the specification (see the "Schema modification rules" clause). We don't call out this particular type of modification though, but I can see if it's worth adding into the specification for clarity since this does not impact any functional aspects of the schema.
|
|
|
Post by mraineri on Jan 19, 2024 20:15:12 GMT
Although, if the entirety of this schema usage is internal (as in you don't allow a user to view the schema on the service), you could do whatever you want to the data since it won't impact an external user. Services sometimes show their schema repository at /redfish/v1/Schemas, but if that's out of scope, then there's no need to keep to strict Redfish Specification conformance here.
You might also want to look at consuming JSON Schema instead of CSDL since it's a bit smaller.
|
|