Skip to content

Commit

Permalink
Merge branch 'actions-setup'
Browse files Browse the repository at this point in the history
* actions-setup:
  update readme with validation status badge
  update schmea to use local version of dependancies
  create github action to validate example xml files against the schema
  • Loading branch information
aforsythe committed Dec 27, 2023
2 parents 2080f0f + e2719fe commit d6c20e3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/validate-xml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Validate AMF Schema and Examples

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Install xmllint
run: sudo apt-get install -y libxml2-utils

- name: Validate XML Files
run: |
for file in examples/*.amf; do
xmllint --noout --schema schema/acesMetadataFile.xsd $file
done
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ACES Metadata File (AMF) ##

![GitHub release (with filter)](https://img.shields.io/github/v/release/ampas/aces-amf) [![CLA assistant](https://cla-assistant.io/readme/badge/ampas/aces-amf)](https://cla-assistant.io/ampas/aces-amf)
![AMF Schema and Example Validation](https://github.com/ampas/aces-amf/actions/workflows/validate-xml.yml/badge.svg?event=push) ![GitHub release (with filter)](https://img.shields.io/github/v/release/ampas/aces-amf) [![CLA assistant](https://cla-assistant.io/readme/badge/ampas/aces-amf)](https://cla-assistant.io/ampas/aces-amf)

The ACES Metadata File ("AMF") is a sidecar XML file intended to exchange the metadata required to recreate ACES viewing pipelines. It describes the transforms necessary to configure an ACES viewing pipeline for a collection of related image files.

Expand Down
4 changes: 2 additions & 2 deletions schema/acesMetadataFile.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
namespace="urn:ASC:CDL:v1.01"/>

<!-- Import SMPTE DCML Types Schema -->
<xs:import schemaLocation="https://smpte-ra.org/sites/default/files/st433b-2008-am1-2011.xsd"
<xs:import schemaLocation="st433b-2008-am1-2011.xsd"
namespace="http://www.smpte-ra.org/schemas/433/2008/dcmlTypes/" />

<!-- Import XML Sig Schema -->
<xs:import schemaLocation="https://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"
<xs:import schemaLocation="xmldsig-core-schema.xsd"
namespace="http://www.w3.org/2000/09/xmldsig#" />

<!-- Define general types -->
Expand Down

0 comments on commit d6c20e3

Please sign in to comment.