Repository navigation
feat: restrict root-level keys in runbook JSON schema - #1427
Merged
Merged
Conversation
Add `anchors` property and `x-` patternProperties to allow YAML anchor definitions, while setting additionalProperties to false to reject unknown root-level keys (e.g. typos).
Contributor
BenchmarkManyRunbooks-4
Metadata
BenchmarkOpenAPI3-4
Metadata
BenchmarkSingleRunbook-4
Metadata
Reported by octocov |
Contributor
Code Metrics Report
Details | | main (0c35476) | #1427 (53d50c9) | +/- |
|---------------------|----------------|-----------------|-------|
+ | Coverage | 60.2% | 60.2% | +0.0% |
| Files | 81 | 81 | 0 |
| Lines | 9303 | 9303 | 0 |
+ | Covered | 5607 | 5608 | +1 |
| Code to Test Ratio | 1:0.8 | 1:0.8 | 0.0 |
| Code | 17456 | 17456 | 0 |
| Test | 14568 | 14568 | 0 |
+ | Test Execution Time | 8m13s | 7m37s | -36s |Code coverage of files in pull request scope (70.0% → 70.5%)
Reported by octocov |
Merged
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.
Summary
anchorsproperty for YAML anchor definitions at root levelx-patternProperties for extension fields (OpenAPI-style)additionalProperties: falseat root level to reject unknown keys (e.g. typos)anchors:instead of arbitrary key names