title: How to specify a "year" field in openapi v3 / swagger?
body: <p>I want to define an API using openAPI v3. One of an object's properties will be a <code>year</code>. My current definition looks like this:</p>
  <pre><code>&quot;fieldname&quot;: {
      &quot;type&quot;: &quot;string&quot;,
      &quot;format&quot;: &quot;date&quot;,
      &quot;pattern&quot;: &quot;\d\d\d\d&quot;
  }
  </code></pre>
  <p>Is this a valid description? Or is there a predefined or better fitting description of such fields?</p>
  <p>What is the most precise and semantically valuable, yet correct way to specify such properties?</p>