invalid-value
A value has the wrong type, a bad enum value or a malformed URL.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/services.yaml:4:11 error invalid-value Invalid value for "type": expected one of "app"|"datastore"|"broker"A value a field doesn’t accept means nothing to what reads the Model. A Service type outside app, datastore and broker can’t be drawn, and a malformed url can’t be opened.
Failing example
Section titled “Failing example”shop/services.yaml:
services: orders-db: name: Orders DB type: databaseChange the value to one the field accepts.
shop/services.yaml:
services: orders-db: name: Orders DB type: datastoreRelated rules
Section titled “Related rules”unknown-field: A key isn’t in the schema.missing-field: A required field is absent.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.