Ensures that the YAML content conforms to the specified JSON schema. This rule validates the structure and content of your Docker Compose file against the defined schema, ensuring that it follows the expected format.
- Rule Name: invalid-schema
- Type: error
- Category: style
- Severity: critical
- Fixable: false
This rule validates your Docker Compose file against the JSON schema defined in compose.schema.json. This ensures that the structure and content of the file adhere to the expected standards, reducing the likelihood of errors when running Docker Compose.
By validating the file against a schema, you can catch issues early in the development process, leading to more stable and predictable deployments.
This rule requires that the compose.schema.json
schema is up-to-date with the latest Docker Compose specifications.
However, the schema is not updated automatically. This means that if the schema is outdated, it may fail to recognize
newer Docker Compose features, potentially causing false positives during validation.
To keep the schema current, you can manually update it and contribute to the project by following the instructions in the contribution guidelines.
This rule was introduced in v1.0.0.