openpreserve / odf-validator

Open source Open Document Format (ODF) validation
http://odf.openpreservation.org/
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Support delimiting validation of extension #17

Closed Asbjoedt closed 9 months ago

Asbjoedt commented 1 year ago

See this issue https://github.com/opf-labs/sheets-preservation-spec/issues/8 for context.

The validator should support a config/policy file so any organisation may validate only a subset of file format extensions. How to implement the config/policy file must be documented, so it is easy for an organisation to use this option.

carlwilson commented 1 year ago

Do you mean to filter by extension only OR the underlying real MIME type. Remember that if the two are inconsistent, it will be a validation error. An extension is a dubious element to chose for this.

Asbjoedt commented 1 year ago

ODS_2 is standard compliance and the standard defines pairs of extension and MIME types, so the check would fail here if the two are not consistent?

ODS_3 is then only the extension, because in ODS_2 we already validated the correct MIME type associated with the extension.

You get what I mean?

carlwilson commented 9 months ago

Closed by #104