Skip to content

Commit 4099a2b

Browse files
authored
Only validate OpenAPI doc files that have the versioned pattern in its name (#83)
* Only validate OpenAPI doc files that have the versioned pattern in its name * Update OpenAPI doc file validation to only validate files matching `*.v[1-9]*.yaml`
1 parent 13e8a48 commit 4099a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/validate_my_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def validate_definition(definition_file):
4343
options = parser.parse_args()
4444
r = requests.get(OPENAPI_SCHEMA_URL)
4545
schema = r.json()
46-
files = glob.glob(f"{options.dir}/*.yaml")
46+
files = glob.glob(f"{options.dir}/*.v[1-9]*.yaml")
4747
if files:
4848
for file in files:
4949
validate_definition(file)

0 commit comments

Comments
 (0)