Use newer manifest schema in old SDK
Follow these steps to validate against a newer schema than the one available in the SDK you need to use.
This is useful when you are working with an older version of the SDK, but still want to use a newer manifest schema because you want to prepare your application for AXIS OS 13.
- Place the desired schema file in your project directory (the same level as the Dockerfile). Here are the latest schemas for each major:
- Add a
COPYinstruction to your Dockerfile to copy the schema file into the SDK's schema directory. Copy it to the corresponding location depending on major version of the schema:
/opt/axis/acapsdk/axis-acap-manifest-tools/schema/schemas/v1//opt/axis/acapsdk/axis-acap-manifest-tools/schema/schemas/v2/
COPY application-manifest-schema-v2.0.0.json /opt/axis/acapsdk/axis-acap-manifest-tools/schema/schemas/v2/
- Update the
schemaVersionfield of yourmanifest.jsonto match that of the manifest schema.