Repository navigation
Add input validation rules to the app manifest - #391
Draft
merschformann wants to merge 2 commits into
Draft
merschformann wants to merge 2 commits into
merschformann wants to merge 2 commits into
Conversation
Support `configuration.content.validation` in app.yaml and send it as `io_configuration.input_validation` when pushing an app. Only the top-level structure is checked (enforce value, positive max_findings, unique rule names); rule bodies are passed through unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
configuration.content.validationto the app manifest. It declares rules that the run input data is checked against before a run is created. Onpush, the rules are sent asio_configuration.input_validation.Scope of this change:
ManifestInputValidation, plusManifestInputValidationEnforce. Both are exported fromnextmv.enforcemust be one ofnone,warnorblock;max_findingsmust be positive; every rule needs a non-empty, uniquename.nextmv manifest validatereports these errors.Testing
tests/test_manifest_input_validation.py: YAML load and round trip, structure errors, and the push payload.🤖 Generated with Claude Code