title: Can the JsonProperty required value be conditional?
body: <p>Is it possible to have the @JsonProperty required dynamically set or set at call?</p>
  
  <p>The reason behind this...
  I'm generating json files which describes a schema and defines</p>
  
  <ul>
  <li>What are the required fields for a <strong><em>new</em></strong> item</li>
  <li>What are the required fields for an <strong><em>update</em></strong> to an item.</li>
  </ul>
  
  <p>So, a creation requires only foo</p>
  
  <p>and an update requires foo and bar</p>
  
  <p>Can I make things so I can pass in something to say <strong>bar</strong> is now required?</p>
  
  <p>or would I need to duplicate this code in order to have different settings for JsonProperty?</p>
  
  <pre><code>@JsonInclude(Include.NON_NULL)
  
  public class Bean {
  
      @JsonProperty(value="foo", required=false)
      private FooProperty fooProperty;
  
      @JsonProperty(value="bar", required=false)
      private BarProperty barProperty;
  
      //
      public FooProperty getFooProperty() { return fooProperty; }
  
      public void setFooProperty(FooProperty argFooProperty) {
          this.fooProperty = argFooProperty
      }
  
  
      public BarProperty getBarProperty() { return barProperty; }
  
      public void setFooProperty(BarProperty argBarProperty) {
          this.barProperty = argBarProperty
      }
  }
  </code></pre>