/*
 * Copyright 2016 Yu Sheng. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.  You may obtain a copy of
 * the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed
 * under the License is distributed on an "AS IS" BASIS, without warranties or
 * conditions of any kind, EITHER EXPRESS OR IMPLIED.  See the License for the
 * specific language governing permissions and limitations under the License.
 */

package com.ysheng.auth.model.api.client;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ysheng.auth.model.api.ClientType;

/**
 * Defines the data structure of client registration request.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class ClientRegistrationSpec {

  // Type of the client.
  @JsonProperty
  private ClientType type;

  // Redirect URI of the client.
  @JsonProperty
  private String redirectUri;

  ///
  /// Getters and Setters.
  ///

  public ClientType getType() {
    return type;
  }

  public void setType(ClientType type) {
    this.type = type;
  }

  public String getRedirectUri() {
    return redirectUri;
  }

  public void setRedirectUri(String redirectUri) {
    this.redirectUri = redirectUri;
  }
}

@@ -987,32 +987,49 @@
 %0A  @JsonProperty
+(required = true)
 %0A  private Clien
@@ -1089,16 +1089,33 @@
 Property
+(required = true)
 %0A  priva

make certain fields mandatory for client registration request