Solve this learning challenge by posting a JSON or YAML code snippet.
Create a swagger spec file (in JSON or YAML) which describes a simple read-only API for retrieving a list of registered voters. Here are the key requirements:
- The list should be paginated with parameters that control the page size and current page number
- The voters returned should be defined as a "voter" definition
- Each voter should have all of the fields you would expect, including an age (with appropriate max / min values) and a party affiliation (with a restricted list of possible values)