Skip to content

Commit 05278a4

Browse files
authored
fix: allow now include (#69)
`rattler-build` allows it that `include` isn't set, so the schema should as well
1 parent 37e72a7 commit 05278a4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

conda_recipe_v2_schema/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class IfStatement(StrictBaseModel, Generic[T]):
4848

4949

5050
class GlobDict(StrictBaseModel):
51-
include: GlobVec = Field(..., description="Glob patterns to include")
51+
include: GlobVec = Field([], description="Glob patterns to include")
5252
exclude: GlobVec = Field([], description="Glob patterns to exclude")
5353

5454

schema.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,7 @@
17861786
"type": "array"
17871787
}
17881788
],
1789+
"default": [],
17891790
"description": "Glob patterns to include",
17901791
"title": "Include"
17911792
},
@@ -1818,9 +1819,6 @@
18181819
"title": "Exclude"
18191820
}
18201821
},
1821-
"required": [
1822-
"include"
1823-
],
18241822
"title": "GlobDict",
18251823
"type": "object"
18261824
},

0 commit comments

Comments
 (0)