diff --git a/docs/_data/schema-meetups.yaml b/docs/_data/schema-meetups.yaml new file mode 100644 index 000000000..04fff6cb6 --- /dev/null +++ b/docs/_data/schema-meetups.yaml @@ -0,0 +1,15 @@ +region: str(required=True) +country: str(required=True) +state: str(required=False) +city: str(required=False) +website: str(required=False) +twitter: str(required=False) +meetup: str(required=False) # I can't figure out how to validate must contain either meetup or meetup_alt +meetup_alt: str(required=False) +organizers: list(include('organizer-detail'), min=1, max=9) + +--- + +organizer-detail: + name: str(required=True) + link: str(required=False) diff --git a/docs/_scripts/validate-yaml.sh b/docs/_scripts/validate-yaml.sh index 1bfe0a851..31946cc29 100755 --- a/docs/_scripts/validate-yaml.sh +++ b/docs/_scripts/validate-yaml.sh @@ -22,4 +22,10 @@ do yamale -s docs/_data/schema-sessions.yaml $y -p ruamel done +for y in ../_data/meetups/*.yaml +do + [[ $y == *"schema"* ]] && continue + yamale -s docs/_data/schema-meetups.yaml $y -p ruamel +done + cd -